-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
52 lines (43 loc) · 1.95 KB
/
Justfile
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
help:
just --list
make_reflect_config:
./mvnw clean
./mvnw compile
./mvnw -Ppicocli-codegen dependency:copy-dependencies
./mvnw package
java \
--class-path target/dependency/picocli-codegen-4.7.5.jar:target/jresolve-cli-2024.08.23.jar:target/dependency/json-2023.12.23.jar:target/dependency/picocli-4.7.5.jar:target/dependency/purl-2023.11.07.jar:target/dependency/resolve-2024.05.26.jar \
picocli.codegen.aot.graalvm.ReflectionConfigGenerator \
dev.mccue.resolve.cli.CliMain > reflect.json
exe static='':
./mvnw clean
./mvnw compile
./mvnw dependency:copy-dependencies
./mvnw package
native-image \
--module-path target/dependency/json-2023.12.23.jar:target/dependency/picocli-4.7.5.jar:target/dependency/purl-2023.11.07.jar:target/dependency/resolve-2024.05.26.jar \
-H:+UnlockExperimentalVMOptions -H:ReflectionConfigurationFiles=reflect.json -H:+ReportUnsupportedElementsAtRuntime \
-jar target/jresolve-cli-2024.08.23.jar \
{{static}} jresolve
exe_windows:
./mvnw clean
./mvnw compile
./mvnw dependency:copy-dependencies
./mvnw package
native-image.cmd --module-path "target\dependency\json-2023.12.23.jar;target\dependency\picocli-4.7.5.jar;target\dependency\purl-2023.11.07.jar;target\dependency\resolve-2024.05.26.jar" -H:+UnlockExperimentalVMOptions -H:ReflectionConfigurationFiles=reflect.json -H:+ReportUnsupportedElementsAtRuntime -jar "target\jresolve-cli-2024.05.26.jar" jresolve
release:
./mvnw clean
./mvnw compile
./mvnw dependency:copy-dependencies
./mvnw package
rm -rf target/jlinked-jres
jlink \
--module-path target/dependency:target/classes \
--output target/jlinked-jre \
--add-modules dev.mccue.resolve.cli \
--launcher jresolve=dev.mccue.resolve.cli/dev.mccue.resolve.cli.CliMain
jreleaser:
./mvnw clean
./mvnw compile
./mvnw dependency:copy-dependencies
rm -rf sdkman