diff options
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |