2019-08-13 22:20:16 +08:00
|
|
|
plugins {
|
|
|
|
id 'java-gradle-plugin'
|
2023-04-14 16:27:52 +08:00
|
|
|
id 'checkstyle'
|
|
|
|
id 'io.spring.javaformat' version "${javaFormatVersion}"
|
2019-08-13 22:20:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2019-08-19 16:15:43 +08:00
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
|
2022-11-02 17:59:39 +08:00
|
|
|
ext {
|
|
|
|
def propertiesFile = new File(new File("$projectDir").parentFile, "gradle.properties")
|
|
|
|
propertiesFile.withInputStream {
|
|
|
|
def properties = new Properties()
|
|
|
|
properties.load(it)
|
|
|
|
set("kotlinVersion", properties["kotlinVersion"])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-19 16:15:43 +08:00
|
|
|
dependencies {
|
2023-04-14 16:27:52 +08:00
|
|
|
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
|
2023-04-14 18:31:43 +08:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-compiler-embeddable:${kotlinVersion}"
|
2021-09-15 20:40:42 +08:00
|
|
|
implementation "me.champeau.gradle:japicmp-gradle-plugin:0.3.0"
|
2022-10-06 19:52:47 +08:00
|
|
|
implementation "org.gradle:test-retry-gradle-plugin:1.4.1"
|
2023-04-14 18:31:43 +08:00
|
|
|
implementation "io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}"
|
|
|
|
implementation "io.spring.nohttp:nohttp-gradle:0.0.11"
|
2019-08-13 22:20:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
gradlePlugin {
|
|
|
|
plugins {
|
2019-08-19 16:15:43 +08:00
|
|
|
apiDiffPlugin {
|
|
|
|
id = "org.springframework.build.api-diff"
|
|
|
|
implementationClass = "org.springframework.build.api.ApiDiffPlugin"
|
|
|
|
}
|
2022-10-06 19:52:47 +08:00
|
|
|
conventionsPlugin {
|
|
|
|
id = "org.springframework.build.conventions"
|
|
|
|
implementationClass = "org.springframework.build.ConventionsPlugin"
|
2019-08-15 19:31:06 +08:00
|
|
|
}
|
2019-08-13 23:51:13 +08:00
|
|
|
optionalDependenciesPlugin {
|
|
|
|
id = "org.springframework.build.optional-dependencies"
|
|
|
|
implementationClass = "org.springframework.build.optional.OptionalDependenciesPlugin"
|
|
|
|
}
|
2022-07-01 00:20:25 +08:00
|
|
|
runtimeHintsAgentPlugin {
|
|
|
|
id = "org.springframework.build.runtimehints-agent"
|
|
|
|
implementationClass = "org.springframework.build.hint.RuntimeHintsAgentPlugin"
|
|
|
|
}
|
2019-08-13 22:20:16 +08:00
|
|
|
}
|
|
|
|
}
|