|
|
|
plugins {
|
|
|
|
id 'java-gradle-plugin'
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
|
|
|
def propertiesFile = new File(new File("$projectDir").parentFile, "gradle.properties")
|
|
|
|
propertiesFile.withInputStream {
|
|
|
|
def properties = new Properties()
|
|
|
|
properties.load(it)
|
|
|
|
set("kotlinVersion", properties["kotlinVersion"])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:${kotlinVersion}")
|
|
|
|
implementation "me.champeau.gradle:japicmp-gradle-plugin:0.3.0"
|
|
|
|
implementation "org.gradle:test-retry-gradle-plugin:1.4.1"
|
|
|
|
}
|
|
|
|
|
|
|
|
gradlePlugin {
|
|
|
|
plugins {
|
|
|
|
apiDiffPlugin {
|
|
|
|
id = "org.springframework.build.api-diff"
|
|
|
|
implementationClass = "org.springframework.build.api.ApiDiffPlugin"
|
|
|
|
}
|
|
|
|
conventionsPlugin {
|
|
|
|
id = "org.springframework.build.conventions"
|
|
|
|
implementationClass = "org.springframework.build.ConventionsPlugin"
|
|
|
|
}
|
|
|
|
optionalDependenciesPlugin {
|
|
|
|
id = "org.springframework.build.optional-dependencies"
|
|
|
|
implementationClass = "org.springframework.build.optional.OptionalDependenciesPlugin"
|
|
|
|
}
|
|
|
|
runtimeHintsAgentPlugin {
|
|
|
|
id = "org.springframework.build.runtimehints-agent"
|
|
|
|
implementationClass = "org.springframework.build.hint.RuntimeHintsAgentPlugin"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|