-
Notifications
You must be signed in to change notification settings - Fork 95
/
Makefile
48 lines (35 loc) · 1.21 KB
/
Makefile
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
ifeq ($(OS),Windows_NT)
GRADLEW = ./gradlew.bat
else
GRADLEW = ./gradlew
endif
IMAGE_NAME = soybean-admin-backend
DATE = $(shell date +%y%m%d)
IMAGE_TAG = $(DATE)-1.0.0
clean:
$(GRADLEW) clean
dev-run: clean
$(GRADLEW) :system:quarkusDev
docker-profile-run: clean
$(GRADLEW) :system:quarkusRun -Dquarkus.profile=docker
build: clean
$(GRADLEW) build
build-native-linux: clean
$(GRADLEW) build -Dquarkus.native.enabled=true -Dquarkus.native.container-build=true
#Could not determine the dependencies of task ':quarkusBuild'.
#https://github.com/quarkusio/quarkus/discussions/40679
build-native-mac: clean
$(GRADLEW) build -Dquarkus.native.enabled=true -Dquarkus.package.jar.enabled=false -x test
build-native-win:
$(GRADLEW) clean build "-Dquarkus.native.enabled=true" "-Dquarkus.package.jar.enabled=false" -x test
build-image-jvm: build
docker build -f src/main/docker/Dockerfile.jvm -t $(IMAGE_NAME):$(IMAGE_TAG) .
build-image-native: build-native-linux
docker build -f src/main/docker/Dockerfile.native-micro -t $(IMAGE_NAME):$(IMAGE_TAG) .
# Format all kotlin code in the project
format-check:
$(GRADLEW) spotlessCheck
format:
$(GRADLEW) spotlessApply
# Format and build
build-with-format: format build