You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
131 lines
4.7 KiB
131 lines
4.7 KiB
plugins { |
|
id "java-gradle-plugin" |
|
id "io.spring.javaformat" version "${javaFormatVersion}" |
|
id "checkstyle" |
|
id "eclipse" |
|
} |
|
|
|
repositories { |
|
mavenCentral() |
|
gradlePluginPortal() |
|
} |
|
|
|
java { |
|
sourceCompatibility = 17 |
|
targetCompatibility = 17 |
|
} |
|
|
|
repositories { |
|
spring.mavenRepositories("${springFrameworkVersion}".contains("-")) |
|
} |
|
|
|
checkstyle { |
|
toolVersion = "${checkstyleToolVersion}" |
|
} |
|
|
|
dependencies { |
|
checkstyle("com.puppycrawl.tools:checkstyle:${checkstyle.toolVersion}") |
|
checkstyle("io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}") |
|
|
|
implementation(platform("org.springframework:spring-framework-bom:${springFrameworkVersion}")) |
|
implementation("com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}") |
|
implementation("com.gradle:develocity-gradle-plugin:3.17.2") |
|
implementation("com.tngtech.archunit:archunit:1.3.0") |
|
implementation("commons-codec:commons-codec:${commonsCodecVersion}") |
|
implementation("de.undercouch.download:de.undercouch.download.gradle.plugin:5.5.0") |
|
implementation("dev.adamko.dokkatoo:dokkatoo-plugin:2.3.1") |
|
implementation("io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}") |
|
implementation("org.apache.maven:maven-embedder:${mavenVersion}") |
|
implementation("org.asciidoctor:asciidoctor-gradle-jvm:4.0.2") |
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}") |
|
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:${kotlinVersion}") |
|
implementation("org.springframework:spring-context") |
|
implementation("org.springframework:spring-core") |
|
implementation("org.springframework:spring-web") |
|
implementation("io.spring.nohttp:nohttp-gradle:0.0.11") |
|
|
|
testImplementation("org.assertj:assertj-core:${assertjVersion}") |
|
testImplementation("org.hamcrest:hamcrest:${hamcrestVersion}") |
|
testImplementation("org.junit.jupiter:junit-jupiter:${junitJupiterVersion}") |
|
testImplementation("org.mockito:mockito-core:${mockitoVersion}") |
|
testImplementation("org.springframework:spring-test") |
|
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher") |
|
} |
|
|
|
gradlePlugin { |
|
plugins { |
|
annotationProcessorPlugin { |
|
id = "org.springframework.boot.annotation-processor" |
|
implementationClass = "org.springframework.boot.build.processors.AnnotationProcessorPlugin" |
|
} |
|
architecturePlugin { |
|
id = "org.springframework.boot.architecture" |
|
implementationClass = "org.springframework.boot.build.architecture.ArchitecturePlugin" |
|
} |
|
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" |
|
} |
|
deployedPlugin { |
|
id = "org.springframework.boot.deployed" |
|
implementationClass = "org.springframework.boot.build.DeployedPlugin" |
|
} |
|
dockerTestPlugin { |
|
id = "org.springframework.boot.docker-test" |
|
implementationClass = "org.springframework.boot.build.test.DockerTestPlugin" |
|
} |
|
integrationTestPlugin { |
|
id = "org.springframework.boot.integration-test" |
|
implementationClass = "org.springframework.boot.build.test.IntegrationTestPlugin" |
|
} |
|
systemTestPlugin { |
|
id = "org.springframework.boot.system-test" |
|
implementationClass = "org.springframework.boot.build.test.SystemTestPlugin" |
|
} |
|
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" |
|
} |
|
testFailuresPlugin { |
|
id = "org.springframework.boot.test-failures" |
|
implementationClass = "org.springframework.boot.build.testing.TestFailuresPlugin" |
|
} |
|
} |
|
} |
|
|
|
test { |
|
useJUnitPlatform() |
|
} |
|
|
|
eclipse.classpath.file.whenMerged { |
|
def jreEntry = entries.find { it.path.contains("org.eclipse.jdt.launching.JRE_CONTAINER") } |
|
jreEntry.entryAttributes['module'] = 'true' |
|
jreEntry.entryAttributes['limit-modules'] = 'java.base' |
|
} |
|
|
|
jar.dependsOn check
|
|
|