Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 9fa1b14

Browse files
committed
enabled spring configuration annotation processor
1 parent 38cb59f commit 9fa1b14

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

build.gradle

+6-13
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ plugins {
2121
// Establish version and status
2222
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name
2323

24-
def javaProjects = subprojects.findAll {
25-
it.name != "ui"
26-
}
27-
28-
configure(javaProjects) {
29-
compileJava.inputs.files(processResources)
30-
}
31-
3224
subprojects {
3325
tasks.withType(Javadoc).all { enabled = false }
3426
}
@@ -68,20 +60,21 @@ allprojects {
6860
}
6961

7062
dependencies {
63+
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
64+
7165
testImplementation('org.springframework.boot:spring-boot-starter-test')
7266
testImplementation('org.springframework.boot:spring-boot-starter-log4j2')
7367
}
7468

69+
// processes additional configuration metadata json file as described here
70+
// https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/html/appendix-configuration-metadata.html#configuration-metadata-additional-metadata
71+
compileJava.inputs.files(processResources)
72+
7573
test {
7674
useJUnitPlatform()
7775
}
7876
}
7977

80-
dependencies {
81-
// annotation processor
82-
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
83-
}
84-
8578
coveralls {
8679
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
8780
jacocoReportPath = "${project.buildDir}/reports/jacoco/report.xml"

0 commit comments

Comments
 (0)