Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ GradleBuild gradleBuild,
String grailsVersion
)

// load the root gradle.properties only for properties not already set
// (e.g., buildSrc/gradle.properties or by environment variables like ORG_GRADLE_PROJECT_grailsVersion=7.0.0)
// https://github.com/gradle/gradle/issues/2534
def props = new Properties()
Comment thread
jamesfredley marked this conversation as resolved.
file('../gradle.properties').withInputStream { props.load(it) }
props.each { key, val ->
if (!project.hasProperty(key)) {
project.ext."$key" = val
}
}

repositories {
mavenCentral()
maven { url = 'https://repo.grails.org/grails/restricted' }
Expand All @@ -53,8 +64,8 @@ repositories {
}

dependencies {
implementation platform("org.apache.grails:grails-bom:@VersionInfo.getGrailsVersion()")
implementation platform("org.apache.grails:grails-bom:$grailsVersion")
@for (GradleDependency dependency : gradleBuild.getBuildSrcDependencies()) {
@dependency.toSnippet()
}
}
}
Loading