Remove warning concerning annotation processor sources

When running Gradle with --warning-mode all, we currently get this
warning:

> Configure project :bramble-core
The CompileOptions.annotationProcessorGeneratedSourcesDirectory property has
been deprecated. This is scheduled to be removed in Gradle 8.0.
Please use the generatedSourceOutputDirectory property instead. See
 https://docs.gradle.org/7.3.3/dsl/org.gradle.api.tasks.compile.CompileOptions.html#org.gradle.api.tasks.compile.CompileOptions:annotationProcessorGeneratedSourcesDirectory
for more details.
        at
dagger_aws623iifvykitf9kogs8i23w$_run_closure2$_closure4.doCall(/home/z/gitlab/briar/briar/dagger.gradle:9)
This commit is contained in:
Sebastian Kürten
2025-02-12 10:07:31 +01:00
parent 7034524fa1
commit 8962fefd14

View File

@@ -1,14 +1,14 @@
sourceSets.configureEach { sourceSet ->
tasks.named(sourceSet.compileJavaTaskName).configure {
options.annotationProcessorGeneratedSourcesDirectory = file("$buildDir/generated/source/apt/${sourceSet.name}")
options.generatedSourceOutputDirectory = file("$buildDir/generated/source/apt/${sourceSet.name}")
}
}
idea {
module {
sourceDirs += compileJava.options.annotationProcessorGeneratedSourcesDirectory
generatedSourceDirs += compileJava.options.annotationProcessorGeneratedSourcesDirectory
testSourceDirs += compileTestJava.options.annotationProcessorGeneratedSourcesDirectory
generatedSourceDirs += compileTestJava.options.annotationProcessorGeneratedSourcesDirectory
sourceDirs += compileJava.options.generatedSourceOutputDirectory
generatedSourceDirs += compileJava.options.generatedSourceOutputDirectory
testSourceDirs += compileTestJava.options.generatedSourceOutputDirectory
generatedSourceDirs += compileTestJava.options.generatedSourceOutputDirectory
}
}
}