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

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git

commit 82a684d100c9c5fd12811fe2028eb65695131a72
Author: Andrus Adamchik <[email protected]>
AuthorDate: Sat May 9 17:00:47 2026 -0400

    trying to preempt invalid JDK versions for Gradle
---
 cayenne-gradle-plugin/pom.xml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/cayenne-gradle-plugin/pom.xml b/cayenne-gradle-plugin/pom.xml
index 58a898fc4..9e78c0c81 100644
--- a/cayenne-gradle-plugin/pom.xml
+++ b/cayenne-gradle-plugin/pom.xml
@@ -65,6 +65,25 @@
 
     <build>
         <plugins>
+            <plugin>
+                <artifactId>maven-enforcer-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>enforce-jdk21</id>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                        <configuration>
+                            <rules>
+                                <requireJavaVersion>
+                                    <version>[21,22)</version>
+                                    <message>cayenne-gradle-plugin requires 
JDK 21 (Gradle 8.x does not support Java &gt; 21). Use JDK 21 to build this 
module.</message>
+                                </requireJavaVersion>
+                            </rules>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
             <plugin>
                 <artifactId>maven-dependency-plugin</artifactId>
                 <executions>

Reply via email to