Skip to content

Fix deprecated Gradle configurations#93

Draft
jra-se wants to merge 5 commits intodevfrom
gradle/fix-deprecations
Draft

Fix deprecated Gradle configurations#93
jra-se wants to merge 5 commits intodevfrom
gradle/fix-deprecations

Conversation

@jra-se
Copy link
Copy Markdown
Contributor

@jra-se jra-se commented Apr 1, 2026

Update all Gradle configurations that are deprecated and will create conflicts for future Gradle versions

@jra-se
Copy link
Copy Markdown
Contributor Author

jra-se commented Apr 1, 2026

TODO before merge

  • fix SymTabDefinitionGradlePluginTest
  • fix invocation of Task.project at execution time (see below)

Invocation of Task.project

Invocation of Task.project at execution time has been deprecated. This will fail with an error in Gradle 10.0. This API is incompatible with the configuration cache, which will become the only mode supported by Gradle in a future release. Consult the upgrading guide for further information: https://docs.gradle.org/8.14.4/userguide/upgrading_version_7.html#task_project

This is currently used in the following configuration, that is contained in symtabdefinitiontool/stdefgradle/build.gradle as well as in cdtool/cdgradle/build.gradle

tasks.register('generateResources') {
  ext {
    propFile = file("$buildDir/generated/buildInfo.properties")
  }
  outputs.file propFile
  doLast {
    mkdir propFile.parentFile
    propFile.text = "version=$project.version"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant