-
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
Use versions from grails-bom in additional locations #510
Conversation
jamesfredley
commented
Feb 13, 2025
- Use versions from grails-bom in additional locations
- add grail-bom to buildscript{} to pull in versions
- put assetPipelineGradleVersion in gradle.properties
- update dependency versions not provided by grails-bom
add grail-bom to buildscript{} to pull in versions put assetPipelineGradleVersion in gradle.properties update dependency versions not provided by grails-bom
@@ -60,6 +60,13 @@ public void apply(GeneratorContext generatorContext) { | |||
.version("$grailsVersion") | |||
.implementation()); | |||
|
|||
generatorContext.addBuildscriptDependency(Dependency.builder() |
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.
If you're including the bom, you don't need an asset pipeline version. It's in the bom.
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.
For asset-pipeline we are using id to load the plugin from the Gradle plugin portal and I have not found a way to reference the grails-bom
version for use with id in the plugins{}
block.
grails-forge-core/src/main/java/org/grails/forge/feature/grails/GrailsWebConsole.java
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.
I'm assuming the intent of this change is to use the bom for the gradle buildscript as well? If so, the asset pipeline version is not needed.
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 is a step forward. James D has valid points. But lets do it incrementally if it is not an easy solve, there are many moving parts here.