-
Notifications
You must be signed in to change notification settings - Fork 200
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
Upgrade deps and use @CompileStatic everywhere #378
Conversation
Signed-off-by: Alex Saveau <[email protected]>
src/main/groovy/com/github/benmanes/gradle/versions/updates/Resolver.groovy
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me, thank you!
Anyone have any concerns with the Gradle 5 + JDK8 baseline requirements?
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
Possibly we can condition the |
No, that doesn't seem to fix the issue (I reproed using Zac's app). It also broke the plugin because the resolved dependency set was empty. |
Did you try skipping the configurations where Lines 66 to 74 in 4a4ee27
I was hoping that just ignoring those configuration types, like |
Huh, I clearly don't understand how configuration works at all. I would have thought we'd want to skip |
Sorry, I meant skip |
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
Well yes, but no. 😁 Nothing I've tried fixes the issue where MPP deps can't be resolved. That said, only processing |
From what I understand, this is what we're doing:
|
We marked it as resolvable because most people used Would you prefer retaining the old hack for 5.x users and only applying your |
It doesn't seem to be a hack though, we actually want configurations with |
Oh okay. I suppose its been so many workarounds and Gradle versions that I no longer can tell how anything will work. 😄 When you're happy, feel free to merge. You are also welcome to cut a release:
|
Dope, will do! |
Signed-off-by: Alex Saveau <[email protected]>
@ben-manes Do I have to do anything to make it show up on https://plugins.gradle.org? |
@SUPERCILEX Thanks for the help with this! Just a strawman's proposal, would it be reasonable to go ahead and migrate the code to Java now that the baseline is Gradle 5? I enjoy helping to maintain this project, but do sometimes feel a little down when dealing with a Groovy gotcha. Not enough to not do it though, but I believe @ben-manes is also a Java person so maybe it's a good fit? If so, I'm happy to do the gruntwork |
@SUPERCILEX Nope. It will sync, but is slow. We were early adopters of the plugin portal which at that time went through this sync phase, whereas perhaps now you can deploy to directly? All I know is it eventually works 😄 @anuraaga Groovy is certainly not my language and I used what Gradle expected at that time. I would be supportive of whatever current maintainers prefer (Java, Kotlin, etc). I'm no longer active except as a facilitator and will happily let those willing to do the work make the decisions. |
@anuraaga Yeah, I'd actually love to rewrite this plugin in Kotlin at some point—I just don't have the time 😅. I'd be willing to take a look at pull requests though (either Kotlin or Java) if somebody else has the time. @ben-manes Lol, SGTM. I didn't know you could sync stuff to the plugin portal. And yeah, I deploy my plugins to the portal directly. |
Don't know if I will have the time to do it in one setting but I'm willing to try to rewrite the plugin in Kotlin |
This PR: