43
43
@printenv | grep -E " LOG_LEVEL|BRUTEFORCE|BUILDKIT_PROGRESS"
44
44
@echo " ################################################################################"
45
45
46
+ # # Dependency management
46
47
dependencies :
47
48
@echo " ################################################################################"
48
49
@echo " ## Dependencies: ###############################################################"
49
50
@echo " ################################################################################"
50
- $(GRADLE ) dependencies
51
+ $(GRADLE ) dependencies --refresh-dependencies
51
52
@echo " ################################################################################"
52
53
54
+ outdated :
55
+ $(GRADLE ) dependencyUpdates
56
+
57
+ update : # TODO: Implement dependency update (dependency file)
58
+ @echo " NOT IMPLEMENTED YET"
59
+
60
+ upgrade : # TODO: Implement dependency upgrade (download and install latest)
61
+ @echo " NOT IMPLEMENTED YET"
62
+
63
+ clean :
64
+ $(GRADLE ) clean
65
+
66
+ # # Building process
67
+ build : env
68
+ $(GRADLE ) --console=verbose clean build \
69
+ --exclude-task test \
70
+ --exclude-task checkstyleMain \
71
+ --exclude-task checkstyleTest
72
+
73
+ # # Source code linting and formatting
74
+ lint/json :
75
+ prettier --check ./algorithm-exercises-java/** /* .json
76
+
53
77
lint/markdown :
54
78
markdownlint ' **/*.md' --ignore node_modules && echo ' ✔ Your code looks good.'
79
+
55
80
lint/yaml :
56
81
yamllint --stric . && echo ' ✔ Your code looks good.'
57
82
58
- lint : lint/markdown lint/yaml test/styling test/static
83
+ lint : lint/markdown lint/yaml lint/json test/styling test/static
59
84
85
+ format/json :
86
+ prettier --write ./algorithm-exercises-java/** /* .json
87
+
88
+ format/sources : # TODO: Implement source code formatting
89
+ @echo " NOT IMPLEMENTED YET"
90
+
91
+ format : format/sources format/json
92
+
93
+ # # Static code analysis
60
94
test/styling : dependencies
61
95
$(GRADLE ) --console=verbose clean checkstyleMain checkstyleTest
62
96
63
97
test/static : dependencies
64
98
99
+ # # Unit tests and coverage
65
100
test : env
66
101
$(GRADLE ) --console=verbose clean test -x checkstyleMain checkstyleTest
67
102
@@ -70,17 +105,7 @@ coverage: test
70
105
coverage/html : test
71
106
open algorithm-exercises-java/build/reports/jacoco/test/html/index.html
72
107
73
- outdated :
74
-
75
- clean :
76
- $(GRADLE ) clean
77
-
78
- build : env
79
- $(GRADLE ) --console=verbose clean build \
80
- --exclude-task test \
81
- --exclude-task checkstyleMain \
82
- --exclude-task checkstyleTest
83
-
108
+ # # Docker Compose commands
84
109
compose/build : env
85
110
${DOCKER_COMPOSE} --profile lint build
86
111
${DOCKER_COMPOSE} --profile testing build
0 commit comments