Add annotation processing for tests.

This commit is contained in:
Jeremy Wood 2023-03-12 17:30:46 -04:00
parent 1d5d7a9ce2
commit 2a504f4360
No known key found for this signature in database
GPG Key ID: C5BAD04C77B91B4B

View File

@ -119,6 +119,7 @@ dependencies {
// Annotation Processors // Annotation Processors
annotationProcessor 'org.glassfish.hk2:hk2-metadata-generator:3.0.3' annotationProcessor 'org.glassfish.hk2:hk2-metadata-generator:3.0.3'
testAnnotationProcessor 'org.glassfish.hk2:hk2-metadata-generator:3.0.3'
} }
@ -188,7 +189,11 @@ task prepareSource(type: Sync) {
compileJava { compileJava {
source = prepareSource.outputs source = prepareSource.outputs
options.compilerArgs << '-Aorg.glassfish.hk2.metadata.location=META-INF/hk2-locator/Multiverse-Core' }
tasks.withType(JavaCompile) {
configure(options) {
options.compilerArgs << '-Aorg.glassfish.hk2.metadata.location=META-INF/hk2-locator/Multiverse-Core'
}
} }
compileKotlin { compileKotlin {