-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (21 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
SHELL=/bin/bash -o pipefail
############################# Main targets #############################
run-basic: build-mvn exec-basic
run-exp: build-mvn exec-exp
########################################################################
build-mvn:
@mvn clean package
build-mvn-docker:
@docker run --rm -v "$(shell pwd):/opt/maven" -w /opt/maven maven:3.9.6-amazoncorretto-21 mvn clean package
exec-basic:
@java --class-path target/simple-lottery-1.0-SNAPSHOT.jar dev.andreasarf.lottery.basic.Main
exec-exp:
@java --enable-preview -XX:+UnlockExperimentalVMOptions -XX:+TrustFinalNonStaticFields -dsa -XX:+UseNUMA \
--class-path target/simple-lottery-1.0-SNAPSHOT.jar dev.andreasarf.lottery.experimental.ExpMain
exec-basic-docker:
@docker run --rm -v "$(shell pwd):/opt/java" -w /opt/java ghcr.io/graalvm/jdk-community:21 java \
--class-path target/simple-lottery-1.0-SNAPSHOT.jar dev.andreasarf.lottery.basic.Main
exec-exp-docker:
@docker run --rm -v "$(shell pwd):/opt/java" -w /opt/java ghcr.io/graalvm/jdk-community:21 java \
--enable-preview -XX:+UnlockExperimentalVMOptions -XX:+TrustFinalNonStaticFields -dsa -XX:+UseNUMA \
--class-path target/simple-lottery-1.0-SNAPSHOT.jar dev.andreasarf.lottery.experimental.ExpMain