Skip to content

Commit

Permalink
Moved compile-options-conventions inside kotlin-jvm-conventions and k…
Browse files Browse the repository at this point in the history
…otlin-multiplatform-conventions
  • Loading branch information
dkrasnoff committed Jun 19, 2024
1 parent da5f4cf commit d322f10
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion atomicfu-maven-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
plugins {
`maven-publish`
id("kotlin-jvm-conventions")
id("compile-options-conventions")
}

dependencies {
Expand Down
1 change: 0 additions & 1 deletion atomicfu-transformer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

plugins {
id("kotlin-jvm-conventions")
id("compile-options-conventions")
}

dependencies {
Expand Down
1 change: 0 additions & 1 deletion atomicfu/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile

plugins {
id("kotlin-multiplatform-conventions")
id("compile-options-conventions")
id("publish-conventions")
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
// TODO(Dmitrii Krasnov): https://github.com/Kotlin/kotlinx-atomicfu/issues/421
// convert this script to a kotlin-jvm convention

val kotlin = extensions.getByType<KotlinProjectExtension>()

kotlin.sourceSets.configureEach {
Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/kotlin-jvm-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
kotlin("jvm")
id("publish-conventions")
id("common-conventions")
id("kotlin-base-conventions")
}

// MPP projects pack their sources automatically, java libraries need to explicitly pack them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile
plugins {
kotlin("multiplatform")
id("common-conventions")
id("kotlin-base-conventions")
}

tasks.withType<Kotlin2JsCompile>().configureEach {
Expand Down

0 comments on commit d322f10

Please sign in to comment.