From 8962fefd14ee66e97da879e74a07568d30335a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCrten?= Date: Wed, 12 Feb 2025 10:07:31 +0100 Subject: [PATCH] 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) --- dagger.gradle | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dagger.gradle b/dagger.gradle index eec34b8a0..24b5260d1 100644 --- a/dagger.gradle +++ b/dagger.gradle @@ -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 } -} \ No newline at end of file +}