Fix configuration metadata generation

This commit fixes the build configuration for annotation processing.
The configuration metadata is now being generated and packaged with the
starter module.

Fixes gh-33
This commit is contained in:
Brian Clozel
2021-02-02 15:43:24 +01:00
parent 36121f338f
commit 2ebbd464b8

View File

@@ -11,10 +11,6 @@ description = "GraphQL Spring Boot Starter"
sourceCompatibility = 1.8
targetCompatibility = 1.8
configurations {
apt
}
dependencyManagement {
imports {
mavenBom SpringBootPlugin.BOM_COORDINATES
@@ -25,12 +21,12 @@ dependencyManagement {
}
dependencies {
api project(':spring-graphql-web')
api project(':spring-graphql-web')
api 'com.graphql-java:graphql-java:15.0'
// Reactor is required as it's part of the interception model
api 'io.projectreactor:reactor-core'
api 'org.springframework:spring-context'
api 'org.springframework.boot:spring-boot-starter'
api 'org.springframework.boot:spring-boot-starter'
compileOnly 'org.springframework:spring-webflux'
compileOnly 'org.springframework:spring-webmvc'
@@ -41,7 +37,7 @@ dependencies {
compileOnly 'io.micrometer:micrometer-core'
compileOnly 'org.springframework.boot:spring-boot-actuator-autoconfigure'
apt 'javax.annotation:javax.annotation-api:1.3.2'
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'
@@ -57,10 +53,6 @@ dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
compileJava {
options.annotationProcessorPath = configurations.apt
}
test {
useJUnitPlatform()
testLogging {