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
annotationProcessor 'org.glassfish.hk2:hk2-metadata-generator:3.0.3'
testAnnotationProcessor 'org.glassfish.hk2:hk2-metadata-generator:3.0.3'
}
@ -188,8 +189,12 @@ task prepareSource(type: Sync) {
compileJava {
source = prepareSource.outputs
}
tasks.withType(JavaCompile) {
configure(options) {
options.compilerArgs << '-Aorg.glassfish.hk2.metadata.location=META-INF/hk2-locator/Multiverse-Core'
}
}
compileKotlin {
// We're not using Kotlin in the plugin itself, just tests!