Move common configuration from /build.gradle.kts into plugin
Move all common to all projects configuration from root build.gradle.kts into common-configuration convention plugin.
This commit is contained in:
@@ -19,7 +19,7 @@ val projectsAllowedToUseFirFromSymbol = listOf(
|
||||
|
||||
subprojects {
|
||||
if (name in projectsAllowedToUseFirFromSymbol) {
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>>().configureEach {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += "-opt-in=org.jetbrains.kotlin.fir.symbols.SymbolInternals"
|
||||
}
|
||||
|
||||
@@ -46,9 +46,9 @@ val generateTree by tasks.registering(NoDebugJavaExec::class) {
|
||||
systemProperties["line.separator"] = "\n"
|
||||
}
|
||||
|
||||
val compileKotlin by tasks
|
||||
|
||||
compileKotlin.dependsOn(generateTree)
|
||||
tasks.named("compileKotlin") {
|
||||
dependsOn(generateTree)
|
||||
}
|
||||
|
||||
if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
|
||||
apply(plugin = "idea")
|
||||
|
||||
Reference in New Issue
Block a user