This commit moves the configuration of a local Maven deployment repository in a dedicated Gradle convention and applies it to all sub-projects. This separates the publishing configuration for actual project modules (that are meant to be published on Maven Central) from the infrastructure sub-projects such as the documentation one.
42 lines
1.2 KiB
Groovy
42 lines
1.2 KiB
Groovy
plugins {
|
|
id "java-gradle-plugin"
|
|
id "checkstyle"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
maven { url "https://repo.spring.io/release" }
|
|
}
|
|
|
|
dependencies {
|
|
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
|
|
implementation("io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}")
|
|
}
|
|
|
|
checkstyle {
|
|
def archive = configurations.checkstyle.filter { it.name.startsWith("spring-javaformat-checkstyle")}
|
|
config = resources.text.fromArchiveEntry(archive, "io/spring/javaformat/checkstyle/checkstyle.xml")
|
|
toolVersion = 8.11
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
formattingConventionsPlugin {
|
|
id = "org.springframework.graphql.formatting"
|
|
implementationClass = "org.springframework.graphql.build.format.FormattingConventionsPlugin"
|
|
}
|
|
compilerConventionsPlugin {
|
|
id = "org.springframework.graphql.compiler"
|
|
implementationClass = "org.springframework.graphql.build.compile.CompilerConventionsPlugin"
|
|
}
|
|
deploymentConventionsPlugin {
|
|
id = "org.springframework.graphql.deployment"
|
|
implementationClass = "org.springframework.graphql.build.deployment.DeploymentConventionsPlugin"
|
|
}
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
} |