This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/grails-intellij-plugin.git

commit 65129ddcb1754b1d975cfd4dc47a021c687bc3ec
Author: James Daugherty <[email protected]>
AuthorDate: Sat Jul 18 21:26:55 2026 -0400

    Pin options.release in legacy Java modules
---
 gradle-tooling/build.gradle.kts        | 4 ++++
 grails-compiler-patch/build.gradle.kts | 3 +++
 grails-rt/build.gradle.kts             | 3 +++
 jps-plugin/build.gradle.kts            | 3 +++
 4 files changed, 13 insertions(+)

diff --git a/gradle-tooling/build.gradle.kts b/gradle-tooling/build.gradle.kts
index 5342b51..05786b0 100644
--- a/gradle-tooling/build.gradle.kts
+++ b/gradle-tooling/build.gradle.kts
@@ -49,6 +49,10 @@ tasks {
     withType<JavaCompile> {
         sourceCompatibility = "8"
         targetCompatibility = "8"
+        // IPGP 2.18+ force-sets options.release to the platform's Java 
version (25);
+        // this module must stay Java 8 bytecode (it runs inside user 
Grails/JPS builds)
+        options.release = 8
     }
 
 }
+
diff --git a/grails-compiler-patch/build.gradle.kts 
b/grails-compiler-patch/build.gradle.kts
index b897f13..dc323c3 100644
--- a/grails-compiler-patch/build.gradle.kts
+++ b/grails-compiler-patch/build.gradle.kts
@@ -62,6 +62,9 @@ tasks {
     withType<JavaCompile> {
         sourceCompatibility = "8"
         targetCompatibility = "8"
+        // IPGP 2.18+ force-sets options.release to the platform's Java 
version (25);
+        // this module must stay Java 8 bytecode (it runs inside user 
Grails/JPS builds)
+        options.release = 8
     }
 
 }
diff --git a/grails-rt/build.gradle.kts b/grails-rt/build.gradle.kts
index 7c13a82..925a933 100644
--- a/grails-rt/build.gradle.kts
+++ b/grails-rt/build.gradle.kts
@@ -39,6 +39,9 @@ tasks {
     withType<JavaCompile> {
         sourceCompatibility = "8"
         targetCompatibility = "8"
+        // IPGP 2.18+ force-sets options.release to the platform's Java 
version (25);
+        // this module must stay Java 8 bytecode (it runs inside user 
Grails/JPS builds)
+        options.release = 8
     }
 
 }
diff --git a/jps-plugin/build.gradle.kts b/jps-plugin/build.gradle.kts
index 25eac6d..0ae7944 100644
--- a/jps-plugin/build.gradle.kts
+++ b/jps-plugin/build.gradle.kts
@@ -51,6 +51,9 @@ tasks {
     withType<JavaCompile> {
         sourceCompatibility = "11"
         targetCompatibility = "11"
+        // IPGP 2.18+ force-sets options.release to the platform's Java 
version (25);
+        // this module must stay Java 11 bytecode (it runs inside user 
Grails/JPS builds)
+        options.release = 11
     }
 
 }

Reply via email to