2020-01-10 21:48:43 +08:00
|
|
|
plugins {
|
2020-01-23 03:24:37 +08:00
|
|
|
id "java-gradle-plugin"
|
|
|
|
id "io.spring.javaformat" version "${javaFormatVersion}"
|
|
|
|
id "checkstyle"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
gradlePluginPortal()
|
2020-01-23 03:24:37 +08:00
|
|
|
maven { url "https://repo.spring.io/release" }
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
dependencies {
|
2020-01-22 10:33:33 +08:00
|
|
|
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
|
2020-01-23 06:09:17 +08:00
|
|
|
implementation("com.fasterxml.jackson.core:jackson-databind:2.10.0")
|
|
|
|
implementation("commons-codec:commons-codec:1.13")
|
|
|
|
implementation("org.apache.maven:maven-embedder:3.6.2")
|
|
|
|
implementation("org.asciidoctor:asciidoctor-gradle-jvm:2.4.0")
|
|
|
|
implementation("org.springframework:spring-core:5.2.2.RELEASE")
|
|
|
|
implementation("org.springframework:spring-web:5.2.2.RELEASE")
|
|
|
|
implementation("com.google.code.gson:gson:2.8.5")
|
|
|
|
implementation("io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}")
|
|
|
|
testImplementation("org.assertj:assertj-core:3.11.1")
|
|
|
|
testImplementation("org.apache.logging.log4j:log4j-core:2.12.1")
|
2020-01-24 23:24:28 +08:00
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.6.0")
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
checkstyle {
|
2020-01-23 03:24:37 +08:00
|
|
|
def archive = configurations.checkstyle.filter { it.name.startsWith("spring-javaformat-checkstyle")}
|
|
|
|
config = resources.text.fromArchiveEntry(archive, "io/spring/javaformat/checkstyle/checkstyle.xml")
|
2020-01-10 21:48:43 +08:00
|
|
|
toolVersion = 8.11
|
|
|
|
}
|
|
|
|
|
|
|
|
gradlePlugin {
|
|
|
|
plugins {
|
|
|
|
autoConfigurationPlugin {
|
|
|
|
id = "org.springframework.boot.auto-configuration"
|
|
|
|
implementationClass = "org.springframework.boot.build.autoconfigure.AutoConfigurationPlugin"
|
|
|
|
}
|
|
|
|
bomPlugin {
|
|
|
|
id = "org.springframework.boot.bom"
|
|
|
|
implementationClass = "org.springframework.boot.build.bom.BomPlugin"
|
|
|
|
}
|
|
|
|
configurationPropertiesPlugin {
|
|
|
|
id = "org.springframework.boot.configuration-properties"
|
|
|
|
implementationClass = "org.springframework.boot.build.context.properties.ConfigurationPropertiesPlugin"
|
|
|
|
}
|
|
|
|
conventionsPlugin {
|
|
|
|
id = "org.springframework.boot.conventions"
|
|
|
|
implementationClass = "org.springframework.boot.build.ConventionsPlugin"
|
|
|
|
}
|
2020-01-15 20:32:37 +08:00
|
|
|
dependencyManagementPlugin {
|
|
|
|
id = "org.springframework.boot.internal-dependency-management"
|
|
|
|
implementationClass = "org.springframework.boot.build.InternalDependencyManagementPlugin"
|
|
|
|
}
|
2020-01-10 21:48:43 +08:00
|
|
|
deployedPlugin {
|
|
|
|
id = "org.springframework.boot.deployed"
|
|
|
|
implementationClass = "org.springframework.boot.build.DeployedPlugin"
|
|
|
|
}
|
|
|
|
integrationTestPlugin {
|
|
|
|
id = "org.springframework.boot.integration-test"
|
|
|
|
implementationClass = "org.springframework.boot.build.test.IntegrationTestPlugin"
|
|
|
|
}
|
|
|
|
mavenPluginPlugin {
|
|
|
|
id = "org.springframework.boot.maven-plugin"
|
|
|
|
implementationClass = "org.springframework.boot.build.mavenplugin.MavenPluginPlugin"
|
|
|
|
}
|
|
|
|
mavenRepositoryPlugin {
|
|
|
|
id = "org.springframework.boot.maven-repository"
|
|
|
|
implementationClass = "org.springframework.boot.build.MavenRepositoryPlugin"
|
|
|
|
}
|
|
|
|
optionalDependenciesPlugin {
|
|
|
|
id = "org.springframework.boot.optional-dependencies"
|
|
|
|
implementationClass = "org.springframework.boot.build.optional.OptionalDependenciesPlugin"
|
|
|
|
}
|
|
|
|
starterPlugin {
|
|
|
|
id = "org.springframework.boot.starter"
|
|
|
|
implementationClass = "org.springframework.boot.build.starters.StarterPlugin"
|
|
|
|
}
|
2020-01-17 04:55:20 +08:00
|
|
|
testFailuresPlugin {
|
|
|
|
id = "org.springframework.boot.test-failures"
|
|
|
|
implementationClass = "org.springframework.boot.build.testing.TestFailuresPlugin"
|
|
|
|
}
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|