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.
68 lines
2.1 KiB
68 lines
2.1 KiB
plugins { |
|
id 'java-gradle-plugin' |
|
id 'checkstyle' |
|
} |
|
|
|
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 { |
|
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}" |
|
implementation "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}" |
|
implementation "org.jetbrains.dokka:dokka-gradle-plugin:2.1.0" |
|
implementation "com.tngtech.archunit:archunit:1.4.1" |
|
implementation "org.gradle:test-retry-gradle-plugin:1.6.2" |
|
implementation "io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}" |
|
implementation "io.spring.nohttp:nohttp-gradle:0.0.11" |
|
|
|
testImplementation("org.assertj:assertj-core:${assertjVersion}") |
|
testImplementation(platform("org.junit:junit-bom:${junitVersion}")) |
|
testImplementation("org.junit.jupiter:junit-jupiter") |
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher") |
|
} |
|
|
|
gradlePlugin { |
|
plugins { |
|
architecturePlugin { |
|
id = "org.springframework.architecture" |
|
implementationClass = "org.springframework.build.architecture.ArchitecturePlugin" |
|
} |
|
conventionsPlugin { |
|
id = "org.springframework.build.conventions" |
|
implementationClass = "org.springframework.build.ConventionsPlugin" |
|
} |
|
localDevPlugin { |
|
id = "org.springframework.build.localdev" |
|
implementationClass = "org.springframework.build.dev.LocalDevelopmentPlugin" |
|
} |
|
multiReleasePlugin { |
|
id = "org.springframework.build.multiReleaseJar" |
|
implementationClass = "org.springframework.build.multirelease.MultiReleaseJarPlugin" |
|
} |
|
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" |
|
} |
|
} |
|
} |
|
|
|
test { |
|
useJUnitPlatform() |
|
} |
|
|
|
jar.dependsOn check
|
|
|