Merge branch 'fix-gradle-warnings' into 'master'

Remove warning concerning annotation processor sources

See merge request briar/briar!1838
This commit is contained in:
akwizgran
2025-02-13 12:32:36 +00:00

View File

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