Skip to content

Commit b8734ac

Browse files
committed
Add Java 25 build compatibility via Groovy 4.0.30-SNAPSHOT
This change enables building TinkerPop with Java 25 by: 1. Updating Groovy version to 4.0.30-SNAPSHOT which includes ASM 9.9 (required for Java 25 class file version 69 support) 2. Adding explicit annotationProcessorPaths to gremlin-groovy's maven-compiler-plugin configuration. This ensures the GremlinDsl annotation processor can load its dependencies (javapoet, gremlin-core) which is required due to stricter classloader isolation in Java 25. Build requirements: - Requires local installation of Groovy 4.0.30-SNAPSHOT with ASM 9.9 - Use -Denforcer.skip=true to bypass Java version check - Use -Dmaven.javadoc.skip=true due to Groovy source path issues
1 parent 59b68cf commit b8734ac

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

gremlin-groovy/pom.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,38 @@ limitations under the License.
153153
<compilerArgs>
154154
<arg>-parameters</arg>
155155
</compilerArgs>
156+
<annotationProcessorPaths>
157+
<path>
158+
<groupId>org.apache.tinkerpop</groupId>
159+
<artifactId>gremlin-annotations</artifactId>
160+
<version>${project.version}</version>
161+
</path>
162+
<path>
163+
<groupId>org.apache.tinkerpop</groupId>
164+
<artifactId>gremlin-core</artifactId>
165+
<version>${project.version}</version>
166+
</path>
167+
<path>
168+
<groupId>org.apache.tinkerpop</groupId>
169+
<artifactId>gremlin-shaded</artifactId>
170+
<version>${project.version}</version>
171+
</path>
172+
<path>
173+
<groupId>org.apache.tinkerpop</groupId>
174+
<artifactId>gremlin-language</artifactId>
175+
<version>${project.version}</version>
176+
</path>
177+
<path>
178+
<groupId>com.squareup</groupId>
179+
<artifactId>javapoet</artifactId>
180+
<version>${javapoet.version}</version>
181+
</path>
182+
<path>
183+
<groupId>org.antlr</groupId>
184+
<artifactId>antlr4-runtime</artifactId>
185+
<version>${antlr4.version}</version>
186+
</path>
187+
</annotationProcessorPaths>
156188
</configuration>
157189
</plugin>
158190
</plugins>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ limitations under the License.
162162
<commons.text.version>1.10.0</commons.text.version>
163163
<cucumber.version>7.21.1</cucumber.version>
164164
<exp4j.version>0.4.8</exp4j.version>
165-
<groovy.version>4.0.25</groovy.version>
165+
<groovy.version>4.0.30-SNAPSHOT</groovy.version>
166166
<guice.version>4.2.3</guice.version>
167167
<hadoop.version>3.3.3</hadoop.version>
168168
<hamcrest.version>3.0</hamcrest.version>

0 commit comments

Comments
 (0)