Files
spring-graphql/build.gradle
Brian Clozel 5acb64e61d Configure Nullabillity checks with NullAway
This commit configures the Errorprone and Nullaway plugins in the build
to automatically check for null safety issues in the codebase.

Closes gh-1204
2025-05-21 09:30:07 +02:00

68 lines
1.8 KiB
Groovy

description = "Spring for GraphQL"
ext {
moduleProjects = [project(":spring-graphql"), project(":spring-graphql-test")]
springFrameworkVersion = "7.0.0-M4"
graphQlJavaVersion = "24.0"
springBootVersion = "3.4.3"
}
subprojects {
apply plugin: 'org.springframework.graphql.conventions'
apply plugin: 'org.springframework.graphql.architecture'
apply plugin: 'org.springframework.graphql.nullability'
group = 'org.springframework.graphql'
ext.javadocLinks = [
"https://docs.oracle.com/en/java/javase/17/docs/api/",
"https://javadoc.io/doc/com.graphql-java/graphql-java/${graphQlJavaVersion}/",
"https://docs.spring.io/spring-framework/docs/${springFrameworkVersion}/javadoc-api/",
"https://docs.spring.io/spring-boot/${springBootVersion}/api/java/",
] as String[]
repositories {
mavenCentral()
maven {
url "https://repo.spring.io/milestone"
content {
includeGroup "org.springframework.boot"
}
}
if (version.contains('-')) {
maven { url "https://repo.spring.io/milestone" }
}
if (version.endsWith('-SNAPSHOT')) {
maven { url "https://repo.spring.io/snapshot" }
}
}
}
configure(moduleProjects) {
apply plugin: 'java-library'
apply plugin: 'java-test-fixtures'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
dependencyManagement {
canBeConsumed = false
canBeResolved = false
visible = false
}
matching { it.name.endsWith("Classpath") }.all { it.extendsFrom(dependencyManagement) }
}
dependencies {
dependencyManagement(enforcedPlatform(dependencies.project(path: ":platform")))
}
components.java.withVariantsFromConfiguration(configurations.testFixturesApiElements) { skip() }
components.java.withVariantsFromConfiguration(configurations.testFixturesRuntimeElements) { skip() }
apply from: "${rootDir}/gradle/publishing.gradle"
}