-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"java.lang.NullPointerException: Must provide a scope supplier" on Gradle 7.4 with built-in plugins #170
Comments
Needed to move the jacoco plugin order to workaround ajoberstar/reckon#170
See comment at #147 (comment) - still fails similarly on
|
Can confirm I have the same issue after upgrading to Gradle An exception occurred applying plugin request [id: 'org.gradle.application']
> Failed to apply plugin class 'org.gradle.api.plugins.JavaPlugin'.
> Failed to calculate the value of extension 'reckon' property 'version'.
> Must provide a scope supplier. |
@x80486 While I'm not sure why upgrade to Gradle 7.4 changed the semantics, try changing the order of your plugin block dependencies or What worked for me as a workaround was trying to ensure Prior to my workaround I had // Before - broken
plugins {
// stuff
id("org.ajoberstar.reckon") version "0.14.0"
jacoco // problematic plugin
}
// After- OK
plugins {
// stuff
jacoco // Now OK
id("org.ajoberstar.reckon") version "0.14.0"
} Another alternative is probably to define Reckon as |
Somehow, that didn't make any difference for me. I've put the My reckon {
calcScopeFromProp()
calcStageFromProp()
stages("beta", "rc", "final")
} I do also have I know you mentioned that you have a problem with |
Unfortunately, the plugins block has an unclear ordering behavior. To imperatively control the order you'd need to use the apply method directly. |
Do you think there could be a resolution for this or would it be like that because the issue with the I do have other plugins in use and as soon as I start using the I guess it's around the same subject all this. |
Closing as duplicate of #147 |
Thanks @ajoberstar - apologies for accidentally splitting the conversation. |
No problem, appreciate the detailed stacktraces. |
On Gradle 7.4 somehow Reckon appears to be breaking certain plugin loads, such as Jacoco with an error during the plugin load of
java.lang.NullPointerException: Must provide a scope supplier
7.3.3
jacoco
plugin above reckon leads to it working OKHere's a minimal reprod
build.gradle.kts
Full error:
The text was updated successfully, but these errors were encountered: