From e3571007bf3f4d94cff0507111bb811951c8c5d2 Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Tue, 28 Sep 2021 19:49:42 -0500 Subject: [PATCH] Ensure that java 17 is the target for compilation --- build.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.clj b/build.clj index d0906b7..3c37552 100644 --- a/build.clj +++ b/build.clj @@ -51,7 +51,9 @@ (.mkdirs (io/file class-dir)) (b/process {:command-args ["javac" "--add-modules=jdk.incubator.foreign" "src/java/coffi/ffi/Loader.java" - "-d" class-dir]}) + "-d" class-dir + "-target" "17" + "-source" "17"]}) opts) (defn- write-pom