-
Notifications
You must be signed in to change notification settings - Fork 10
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
org.grails.grails-web & org.grails.grails-gsp Gradle Plugin ids with versions not working for snapshots #351
Comments
These gradle plugins will load by version number if placed in settings.gradle
build.gradle
|
This works as designed. It uses the version of grails-gradle-plugin that is in the class path because they are resolved from within that jar. You would never have a different version of the plugins. This will be fixed when we break up and publish the plugins independently. See #340 |
But why does a release version work with works with classpath "org.grails:grails-gradle-plugin:6.2.1"
fails with classpath "org.grails:grails-gradle-plugin:6.2.2-SNAPSHOT"
fails with classpath "org.grails:grails-gradle-plugin:6.2.2-SNAPSHOT"
|
perhaps because gradle plugins don't support snapshots? why are you setting the version in settings.gradle? |
The main example at the top does not use |
When using You can see that in #351 (comment) and #351 (comment) is the same. We should stick with This might also be worth submitting an issue and PR over on Gradle to make |
FYI: the plugins work if the buildSrc imports the bom. That's the biggest reason to use the build source. But when they're in the plugins{} block, they are evaluated differently than when they're applied. The real reason for this is because the grails gradle plugin is often written to lookup tasks that exist at the time they are applied, and not after evaluation. This has the side effect that depending on the plugin load order (or apply order), you'll get unexpected behavior. |
org.grails.grails-web
&org.grails.grails-gsp
Gradle Plugin ids work with 6.2.1, but not with 6.2.2-SNAPSHOT. We must be missing something when we publish thegrails-gradle-plugin
snapshots to repo.grails.org.The workaround is to use:
which does allow the project to load and gradle downloads the following files. Only the jar file has a definition for these ids.
6.2.1 works fine
6.2.2-SNAPSHOT fails
These plugins are not published to the Gradle Central Plugin Repository
https://plugins.gradle.org/search?term=org.grails.grails-web
https://plugins.gradle.org/search?term=org.grails.grails-gsp
https://plugins.gradle.org/search?term=grails-gradle-plugin
The text was updated successfully, but these errors were encountered: