-
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
NPE: Must provide a scope supplier #147
Comments
I seem to have the same error by upgrading Gradle from 6.6 to 6.7.
|
Relevant (maybe) info:
|
I am experiencing the same issue! I am using (among others) these plugins:
When I switch to version 1.4.0 upon reimport of gradle projects I get this weird exception
When I try to gradle clean or build I get the already mentioned exception:
Could you guys have a look? We would like to use some features of 1.4.0. |
Hey @aesteve I solved the problem by reordering the plugins:
More specifically I put the reckon plugin after kotlin plugins. |
Glad you figured this out for your use-case. |
@aesteve I had the same issue in a multi-project build. For me, the issue was that the I was able to fix it just by moving the reckon configuration block right below the |
Thanks a lot for your help. I tried many many different orders but no one seems to fix the issue with Edit: note, no matter the order in plugins block, or where I put the |
I have the same issue here but with a normal java project. This is with a project using the java-test-fixtures plugin. |
I just tried this again with gradle 6.8.3. This is the stack trace I'm getting. It looks like reckon is being configured when the test-fixture-plugin is applied. This is before the extension has been setup and the scope supplier ends up being null.
|
This is what I did to fix the issue. I moved
|
Hmm, maybe #170 is duplicate but it only started happening for me after a Gradle 7.4 upgrade, with I have no idea how determinate it is in Gradle; but just changing the order in the |
The general problem here is likely other plugins that are too eagerly trying to get the version from I'm not sure if it's resolvable by Reckon, since it almost looks like a plugin trying to access the version before the I would be curious if 0.14.0 works any better for those of you with this issue. The fundamental approach is unchanged, but it more deeply uses |
Thanks @ajoberstar. For what it's worth, the call in Jacoco's case (built-in Gradle plugin maintained by Gradle team) is triggered during The full stack is in #170 if you're curious. I am wondering, if using the |
Also, after upgrade to |
I'm not clear on the determinism of the plugin block, but if reckon is applied after jacoco, it would work because reckon wouldn't have taken over the version yet. Unless something else comes along to correct the version on that artifact later, it likely has a If reckon is applied earlier than jacoco you would get this error because reckon has reassigned the version to DelayedVersion, but again Gradle hasn't processed your build logic yet so you haven't configured how reckon should behave and it bombs. Without Gradle making changes to make evaluation of version more lazy, I'm not positive if there's any way to resolve this generally. A partial idea is that maybe having reckon applied as a settings plugin instead of a project plugin could allow it to inject it's logic in earlier. I've never written a settings plugin, but might be worth exploring. |
Interesting, thanks for the reply. At least it's clear that doing something to try and affect the order of plugin loading is a workaround. It's weird that simplify moving from Gradle 7.3.3 to 7.4 broke it for me, but perhaps they changing something in the ordering of plugin loads there... |
Re: @x80486 in #170 (which is a duplicate of this discussion)
I have a handful of thoughts around this:
I'm currently working on updates to other plugins, so this isn't the top of my list, but I do plan to come back to this. And I think both 1 and 2 are approaches I want to pursue. |
The settings plugin |
Hello and thanks for reckon. Been using it for a while and it really really helps managing versions.
On some project, I'm trying to upgrade kotlin JVM plugin from 1.3.72 to 1.4.10 and get the following error:
I probably did something wrong, but everything was working completely fine with 1.3.72, any idea?
Thanks a lot.
The text was updated successfully, but these errors were encountered: