Skip to content

Commit

Permalink
Simplify Gradle setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hfhbd committed Aug 29, 2024
1 parent ba7c990 commit d9005df
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 27 deletions.
14 changes: 0 additions & 14 deletions gradle/build-logic/src/main/kotlin/KotlinConfig.kt

This file was deleted.

10 changes: 9 additions & 1 deletion gradle/build-logic/src/main/kotlin/kotlinMPP.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
plugins {
kotlin("multiplatform")
id("publish")
id("dokkaLicensee")
}

kotlin {
jvmToolchain(8)

jvm()
js(IR) {
browser()
Expand Down Expand Up @@ -35,5 +39,9 @@ kotlin {
mingwX64()
watchosDeviceArm64()

kotlinConfig()
explicitApi()
compilerOptions {
progressiveMode.set(true)
optIn.add("kotlin.uuid.ExperimentalUuidApi")
}
}
8 changes: 2 additions & 6 deletions gradle/build-logic/src/main/kotlin/publish.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import java.util.*

plugins {
id("maven-publish")
id("signing")
Expand All @@ -10,10 +8,8 @@ val emptyJar by tasks.registering(Jar::class)
publishing {
publications.configureEach {
this as MavenPublication
if (project.name != "kotlinx-uuid-exposed") {
artifact(emptyJar) {
classifier = "javadoc"
}
artifact(emptyJar) {
classifier = "javadoc"
}
pom {
name.set("app.softwork UUID Library")
Expand Down
2 changes: 0 additions & 2 deletions kotlinx-uuid-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import org.jetbrains.kotlin.gradle.plugin.*

plugins {
id("kotlinMPP")
id("publish")
id("dokkaLicensee")
id("kover")
id("com.android.library")
kotlin("plugin.parcelize")
Expand Down
2 changes: 0 additions & 2 deletions kotlinx-uuid-datetime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

plugins {
id("kotlinMPP")
id("publish")
id("dokkaLicensee")
}

kotlin.sourceSets {
Expand Down
2 changes: 0 additions & 2 deletions kotlinx-uuid-sqldelight/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
*/
plugins {
id("kotlinMPP")
id("publish")
id("dokkaLicensee")
}

kotlin {
Expand Down

0 comments on commit d9005df

Please sign in to comment.