Allow buildSrc to resolve Framework snapshots

Closes gh-35297
pull/35401/head
Andy Wilkinson 2 years ago
parent 75e9a7e95b
commit 3a45d46583

@ -9,19 +9,22 @@ repositories {
gradlePluginPortal() gradlePluginPortal()
} }
sourceCompatibility = 1.8 new File(new File("$projectDir").parentFile, "gradle.properties").withInputStream {
targetCompatibility = 1.8 def properties = new Properties()
properties.load(it)
ext { ext.set("kotlinVersion", properties["kotlinVersion"])
def propertiesFile = new File(new File("$projectDir").parentFile, "gradle.properties") ext.set("springFrameworkVersion", properties["springFrameworkVersion"])
propertiesFile.withInputStream { if (properties["springFrameworkVersion"].contains("-")) {
def properties = new Properties() repositories {
properties.load(it) maven { url "https://repo.spring.io/milestone" }
set("kotlinVersion", properties["kotlinVersion"]) maven { url "https://repo.spring.io/snapshot" }
set("springFrameworkVersion", properties["springFrameworkVersion"]) }
} }
} }
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies { dependencies {
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}" checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"

Loading…
Cancel
Save