-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (43 loc) · 1.19 KB
/
Makefile
File metadata and controls
53 lines (43 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
build:
@echo "Building the application"
@mvn compile
build-without-tests:
@echo "Building the application without running tests"
@mvn clean install -U -DskipTests
bdd-test:
@echo "Running BDD tests"
@mvn test -P bdd-tests
unit-test:
@echo "Running unit tests"
@mvn test -P unit-tests
unit-test-coverage:
@echo "Running unit tests with coverage"
@mvn clean test -P unit-tests
test: unit-test
security-check:
@echo "Running security checks"
@mvn dependency-check:check -DnvdApiKey=<key-here> -DnvdFailBuildOnCVSS=9
package:
@echo "Packaging the application"
@mvn package
start-app:
@echo "Starting the application"
@mvn spring-boot:start -U -Dspring-boot.run.profiles=local
stop-app:
@echo "Stopping the application"
@mvn spring-boot:stop
#docker-build:
# @echo "Building the docker image"
# @docker build -t backend:dev -f ./Dockerfile .
#
#docker-start:
# @echo "Starting the application in docker"
# docker compose -f ./docker-compose.yaml up --build
#
#docker-stop:
# @echo "Stopping the application in docker"
# @docker compose -f ./docker-compose.yaml down
#
#docker-start-detached:
# @echo "Starting the application in docker"
# docker compose -f ./docker-compose.yaml up --build -d