Skip to content

Update gradle to 9.6.1#392

Open
Suisuroru wants to merge 3 commits into
PaperMC:mainfrom
Suisuroru:main
Open

Update gradle to 9.6.1#392
Suisuroru wants to merge 3 commits into
PaperMC:mainfrom
Suisuroru:main

Conversation

@Suisuroru

Copy link
Copy Markdown

Gradle 9.5 break a function when a new instance was called in runNestedRootBuild since they update the signature of method , see gradle

@Toffikk

Toffikk commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Also your gradle bump will cause the build to fail due to plugin verification being enabled by default starting around gradle 9.4.0 and you have forgotten to bump the minimum required version of Gradle for PW to 9.5.0, meaning users could use older versions and get broken behaviour

@Toffikk

Toffikk commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Also your gradle bump will cause the build to fail due to plugin verification being enabled by default starting around gradle 9.4.0 and you have forgotten to bump the minimum required version of Gradle for PW to 9.5.0, meaning users could use older versions and get broken behaviour

The minimum version should be changed inside utils.kt in buildSrc, and you should temporarily disable plugin verification as per gradle docs if you do bump the version used to build PW too (i’d avoid that)

@Suisuroru

Suisuroru commented Jul 2, 2026

Copy link
Copy Markdown
Author

Also your gradle bump will cause the build to fail due to plugin verification being enabled by default starting around gradle 9.4.0 and you have forgotten to bump the minimum required version of Gradle for PW to 9.5.0, meaning users could use older versions and get broken behaviour

The minimum version should be changed inside utils.kt in buildSrc, and you should temporarily disable plugin verification as per gradle docs if you do bump the version used to build PW too (i’d avoid that)

I've already taken care of these issues,and the ci could successfully pass all the test now

@Toffikk

Toffikk commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Slapping PathSensitivity.RELATIVE and marking all things as @Cacheable isnt the correct solution, and all those other changes to build scripts and classes are fully unnecessary

return emptyMergeResult as MergeResult<T?>
}

inline fun <reified T : Task> TaskContainer.registering(noinline configuration: T.() -> Unit) = registering(T::class, configuration)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because of the warning of below

'fun <T : Any, C : PolymorphicDomainObjectContainer, U : T> C.registering(type: KClass): RegisteringDomainObjectDelegateProviderWithType<out C, U>' is deprecated. Use 'val element = register(name)' instead. See the Gradle 9.6 upgrading guide.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird decision for them to make but gotcha

@Toffikk

Toffikk commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

I would leave these changes to the maintainers and just revert the Gradle bump to paperweight build altogether or disable the plugin verification. It seems you don’t have a good idea on how PW functions internally with no offense.

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.

2 participants