This commit adds support for validating handler method inputs after binding from the data fetching environment and before invoking the handler method. This support is based on Bean Validation and is enabled only if the application context contains a `Validator` bean. Closes gh-110
86 lines
3.1 KiB
Groovy
86 lines
3.1 KiB
Groovy
import org.springframework.boot.gradle.plugin.SpringBootPlugin
|
|
|
|
plugins {
|
|
id 'org.springframework.boot' version "${bootVersion}" apply false
|
|
id 'java-library'
|
|
id 'org.springframework.graphql.compiler'
|
|
}
|
|
|
|
group = 'org.springframework.experimental'
|
|
description = "GraphQL Spring Boot Starter"
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
dependencyManagement {
|
|
imports {
|
|
mavenBom SpringBootPlugin.BOM_COORDINATES
|
|
}
|
|
generatedPomCustomization {
|
|
enabled = false
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api project(':spring-graphql')
|
|
api "com.graphql-java:graphql-java:${graphQlJavaVersion}"
|
|
api 'io.projectreactor:reactor-core'
|
|
api 'org.springframework:spring-context'
|
|
api 'org.springframework.boot:spring-boot-starter'
|
|
|
|
compileOnly 'org.springframework:spring-webflux'
|
|
compileOnly 'org.springframework:spring-webmvc'
|
|
compileOnly 'org.springframework:spring-websocket'
|
|
compileOnly 'javax.servlet:javax.servlet-api'
|
|
compileOnly 'javax.validation:validation-api'
|
|
compileOnly 'javax.websocket:javax.websocket-api'
|
|
|
|
compileOnly 'io.micrometer:micrometer-core'
|
|
compileOnly 'org.springframework.boot:spring-boot-actuator-autoconfigure'
|
|
|
|
compileOnly 'org.springframework.security:spring-security-config'
|
|
compileOnly 'org.springframework.security:spring-security-web'
|
|
|
|
compileOnly 'com.querydsl:querydsl-core'
|
|
compileOnly 'org.springframework.data:spring-data-commons'
|
|
|
|
compileOnly project(':spring-graphql-test')
|
|
compileOnly 'org.junit.jupiter:junit-jupiter-api'
|
|
compileOnly 'org.springframework.boot:spring-boot-test'
|
|
compileOnly 'org.springframework.boot:spring-boot-test-autoconfigure'
|
|
|
|
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
|
|
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
|
|
annotationProcessor 'org.springframework.boot:spring-boot-autoconfigure-processor'
|
|
|
|
testImplementation project(':spring-graphql-test')
|
|
testImplementation 'com.fasterxml.jackson.core:jackson-databind'
|
|
testImplementation 'org.springframework:spring-webflux'
|
|
testImplementation 'org.springframework:spring-webmvc'
|
|
testImplementation 'org.springframework:spring-websocket'
|
|
testImplementation 'io.projectreactor:reactor-test'
|
|
testImplementation 'io.projectreactor.netty:reactor-netty'
|
|
testImplementation 'javax.servlet:javax.servlet-api'
|
|
testImplementation 'javax.validation:validation-api'
|
|
testImplementation 'org.hibernate.validator:hibernate-validator'
|
|
testImplementation 'org.apache.tomcat.embed:tomcat-embed-core'
|
|
testImplementation 'org.apache.tomcat.embed:tomcat-embed-el'
|
|
testImplementation 'org.apache.tomcat.embed:tomcat-embed-websocket'
|
|
testImplementation 'org.springframework.boot:spring-boot-actuator-autoconfigure'
|
|
testImplementation 'io.micrometer:micrometer-core'
|
|
testImplementation 'org.springframework.security:spring-security-config'
|
|
testImplementation 'org.springframework.security:spring-security-web'
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events "passed", "skipped", "failed"
|
|
}
|
|
}
|
|
|
|
apply from: "${rootDir}/gradle/publishing.gradle" |