aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 659df38..98b4a42 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,13 @@ ifeq ($(shell expr $(JAVA_MAJOR_VERSION) \>= 23), 1)
JAVAFLAGS += --sun-misc-unsafe-memory-access=allow
endif
+# loading as modules works with JDK 22+, and is required with JDK 23+
+ifeq ($(shell expr $(JAVA_MAJOR_VERSION) \>= 22), 1)
+JAVA_MODULEPATHS_bachelorizer += mods/com.example.portfolio3
+else
+JAVA_CLASSPATHS_bachelorizer += mods/com.example.portfolio3
+endif
+
# TODO: fix properly declare and resolve local interdependencies
-JAVA_CLASSPATHS_bachelorizer = mods/com.example.portfolio3
runsrc-dk.biks.bachelorizer build-dk.biks.bachelorizer: \
build-com.example.portfolio3