Skip to content

Support for gradle 9.1.0 and java 25 build #3

@fugerit79

Description

@fugerit79

On 16th of September 2025 java 25 has been release (latest LTS afer java 21).

A few days later gradle added supporto for it on gradle 9.1.0.

but trying to build Apache FreeMarker on gradle 9.1.0 leads to the following error :

> Task :buildSrc:compileKotlin FAILED
e: file:///omnia/workspace/git/fork/freemarker/buildSrc/src/main/kotlin/freemarker/build/CompileJavaccTask.kt:123:68 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type '@Nullable() RelativePath?'.
e: file:///omnia/workspace/git/fork/freemarker/buildSrc/src/main/kotlin/freemarker/build/JakartaSourceRootGeneratorTask.kt:106:58 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type '@Nullable() RelativePath?'.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildSrc:compileKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

I see this is not a big issue, as the maven wrapper will select the proper gradle version for me, but I'd like FreeMarker build to work on gradle 9.1.0 too.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions