Skip to content

Commit

Permalink
add grails-bom to buildSrc/build.gradle to set dependency versions th…
Browse files Browse the repository at this point in the history
…e same as main build.gradle file

this is the only Gradle build dependency that is needed in buildSrc/build.gradle and not in buildscript{}
  • Loading branch information
jamesfredley committed Nov 14, 2024
1 parent a6903a1 commit f30d3cb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@import org.grails.forge.feature.Features
@import org.grails.forge.build.gradle.GradleBuild
@import org.grails.forge.build.gradle.GradleDependency
@import org.grails.forge.util.VersionInfo

@args (
ApplicationType applicationType,
Expand All @@ -17,6 +18,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation platform("org.grails:grails-bom:@VersionInfo.getGrailsVersion()")
@for (GradleDependency dependency : gradleBuild.getBuildSrcDependencies()) {
@dependency.toSnippet()
}
Expand Down

0 comments on commit f30d3cb

Please sign in to comment.