mirror of
https://github.com/briar/briar.git
synced 2025-12-23 15:27:44 -05:00
Commit 8962fefd introduced a problem while loading the project into
Android Studio. Apparently the fix from that commit did not handly
updated types of the more recent Gradle API. This update should fix it.
15 lines
594 B
Groovy
15 lines
594 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.get().getAsFile()
|
|
generatedSourceDirs += compileJava.options.generatedSourceOutputDirectory.get().getAsFile()
|
|
testSourceDirs += compileTestJava.options.generatedSourceOutputDirectory.get().getAsFile()
|
|
generatedSourceDirs += compileTestJava.options.generatedSourceOutputDirectory.get().getAsFile()
|
|
}
|
|
}
|