Skip to content

Commit

Permalink
Fix configuration metadata generation
Browse files Browse the repository at this point in the history
This commit fixes the build configuration for annotation processing.
The configuration metadata is now being generated and packaged with the
starter module.

Fixes spring-iogh-33
  • Loading branch information
bclozel committed Feb 2, 2021
1 parent 36121f3 commit 2ebbd46
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions graphql-spring-boot-starter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ description = "GraphQL Spring Boot Starter"
sourceCompatibility = 1.8
targetCompatibility = 1.8

configurations {
apt
}

dependencyManagement {
imports {
mavenBom SpringBootPlugin.BOM_COORDINATES
Expand All @@ -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'
Expand All @@ -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'

Expand All @@ -57,10 +53,6 @@ dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

compileJava {
options.annotationProcessorPath = configurations.apt
}

test {
useJUnitPlatform()
testLogging {
Expand Down

0 comments on commit 2ebbd46

Please sign in to comment.