Files
spring-graphql/buildSrc/build.gradle
Brian Clozel 0458f15ddd Move deployment repository config to a Gradle convention
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.
2022-12-06 17:05:50 +01:00

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()
}