forked from apache/freemarker
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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 detailsI 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 requestNew feature or request