Skip to content

Commit

Permalink
apply publish plugin only for subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 committed Jul 25, 2024
1 parent ba822fd commit 66cfafd
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ plugins {
allprojects {
group = Config.artifactId
version = Config.versionName
tasks.withType<KotlinCompile>().configureEach {
compilerOptions {
jvmTarget.set(Config.jvmTarget)
freeCompilerArgs.apply { addAll(Config.jvmCompilerArgs) }
optIn.addAll(Config.optIns.map { "-opt-in=$it" })
}
}
}

subprojects {
plugins.withType<ComposeCompilerGradleSubplugin>().configureEach {
the<ComposeCompilerGradlePluginExtension>().apply {
enableIntrinsicRemember = true
Expand Down Expand Up @@ -72,17 +82,9 @@ allprojects {
}
}
}
tasks.withType<KotlinCompile>().configureEach {
compilerOptions {
jvmTarget.set(Config.jvmTarget)
freeCompilerArgs.apply { addAll(Config.jvmCompilerArgs) }
optIn.addAll(Config.optIns.map { "-opt-in=$it" })
}
}
}

subprojects {
if (name == "app") return@subprojects

apply(plugin = rootProject.libs.plugins.dokka.id)

dependencies {
Expand Down

0 comments on commit 66cfafd

Please sign in to comment.