mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
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)
15 lines
522 B
Groovy
15 lines
522 B
Groovy
sourceSets.configureEach { sourceSet ->
|
|
tasks.named(sourceSet.compileJavaTaskName).configure {
|
|
options.generatedSourceOutputDirectory = file("$buildDir/generated/source/apt/${sourceSet.name}")
|
|
}
|
|
}
|
|
|
|
idea {
|
|
module {
|
|
sourceDirs += compileJava.options.generatedSourceOutputDirectory
|
|
generatedSourceDirs += compileJava.options.generatedSourceOutputDirectory
|
|
testSourceDirs += compileTestJava.options.generatedSourceOutputDirectory
|
|
generatedSourceDirs += compileTestJava.options.generatedSourceOutputDirectory
|
|
}
|
|
}
|