4343 @printenv | grep -E " LOG_LEVEL|BRUTEFORCE|BUILDKIT_PROGRESS"
4444 @echo " ################################################################################"
4545
46+ # # Dependency management
4647dependencies :
4748 @echo " ################################################################################"
4849 @echo " ## Dependencies: ###############################################################"
4950 @echo " ################################################################################"
50- $(GRADLE ) dependencies
51+ $(GRADLE ) dependencies --refresh-dependencies
5152 @echo " ################################################################################"
5253
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+
5377lint/markdown :
5478 markdownlint ' **/*.md' --ignore node_modules && echo ' ✔ Your code looks good.'
79+
5580lint/yaml :
5681 yamllint --stric . && echo ' ✔ Your code looks good.'
5782
58- lint : lint/markdown lint/yaml test/styling test/static
83+ lint : lint/markdown lint/yaml lint/json test/styling test/static
5984
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
6094test/styling : dependencies
6195 $(GRADLE ) --console=verbose clean checkstyleMain checkstyleTest
6296
6397test/static : dependencies
6498
99+ # # Unit tests and coverage
65100test : env
66101 $(GRADLE ) --console=verbose clean test -x checkstyleMain checkstyleTest
67102
@@ -70,17 +105,7 @@ coverage: test
70105coverage/html : test
71106 open algorithm-exercises-java/build/reports/jacoco/test/html/index.html
72107
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
84109compose/build : env
85110 ${DOCKER_COMPOSE} --profile lint build
86111 ${DOCKER_COMPOSE} --profile testing build
0 commit comments