mirror of
https://github.com/briar/briar.git
synced 2025-12-23 23:37:43 -05:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user