You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Besides, this was done in a patch version of Grails and broke my build, that shouldn't happen)
My thinking:
I want to use the Spring Boot version that the specific Grails version that I am using is compiled against. (Seems obvious)
Newer versions of Gradle, and also the Grails starter recently, have pushed the use of buildSrc.
Using buildSrc, it is idiomatic to have some references to e.g. org.springframework.boot.gradle.plugin.SpringBootPlugin, e.g. for dependency management
For references to the above class, org.springframework.boot:spring-boot-gradle-plugin needs to be on the compile classpath of buildSrc
Before Grails 6.1.2, where org.springframework.boot:spring-boot-gradle-plugin was still api, I could do the following:
While I acknowledge what you are saying, I'm not sure that having these dependencies on the compile classpath of all downstream projects is the correct way to solve this.
Also, I believe the springboot version you are referring to is not actually the one defined in the version of grails you are using but the one defined in grails-gradle-plugin which at the moment could be different versions.
A better way, would perhaps be if these dependencies were added to grails-bom (or a new grails-build-bom). Then the versions could be imported by both grails-gradle-plugin and any grails project that would like to use them with synced-up versions.
Regarding the change in patch release version, these dependencies were (to my understanding) never meant to be exposed, but it could not be prevented with previous versions of Gradles compile scope and then it got changed to the unnecessarily open api when upgrading to Gradle 7.
I don't understand the reasoning behind 42ba793
(Besides, this was done in a patch version of Grails and broke my build, that shouldn't happen)
My thinking:
buildSrc
.buildSrc
, it is idiomatic to have some references to e.g.org.springframework.boot.gradle.plugin.SpringBootPlugin
, e.g. for dependency managementorg.springframework.boot:spring-boot-gradle-plugin
needs to be on the compile classpath ofbuildSrc
6.1.2
, whereorg.springframework.boot:spring-boot-gradle-plugin
was stillapi
, I could do the following:I didn't have to specify versions for the other two plugins.
The text was updated successfully, but these errors were encountered: