Skip to content

Gradle 8.2 compatibility #1413

Closed
Closed
@TWiStErRob

Description

@TWiStErRob

Is your feature request related to a problem? Please describe.
Gradle 8.2 deprecated conventions with nagging. They were deprecated for a long time, but without nagging.

https://docs.gradle.org/8.2-rc-2/userguide/upgrading_version_8.html#deprecated_access_to_conventions

Describe the solution you'd like
Migrate away from using conventions to extensions, so builds can pass nicely even with org.gradle.warning.mode=fail. At Gradle 9.0 this will become an error, so sooner or later the migration has to be done. Better do it sooner :)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context

The Project.getConvention() method has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.2-rc-2/userguide/upgrading_version_8.html#deprecated_access_to_conventions
	at org.gradle.api.internal.project.DefaultProject.getConvention(DefaultProject.java:593)
	at org.jetbrains.intellij.Utils.sourcePluginXmlFiles(utils.kt:64)
	at org.jetbrains.intellij.IntelliJPlugin$configurePatchPluginXmlTask$1$2.call(IntelliJPlugin.kt:476)
	at org.jetbrains.intellij.IntelliJPlugin$configurePatchPluginXmlTask$1$2.call(IntelliJPlugin.kt:475)
	at org.gradle.api.internal.provider.DefaultProvider.calculateOwnValue(DefaultProvider.java:72)

(this is just one example, you can see all usages at https://github.com/TWiStErRob/net.twisterrob.chroma/actions/runs/5355711906/jobs/9714328563?pr=13)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions