Skip to content

Commit

Permalink
Sources jar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
juraj-hrivnak committed May 11, 2024
1 parent 00cac1a commit 591c09a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ private val ktorVersion: String = libs.versions.ktor.get()
private val kotestVersion: String = libs.versions.kotest.get()

kotlin {
withSourcesJar(publish = false)

if (nativeEnabled) {
val hostOs = System.getProperty("os.name")
val isArm64 = System.getProperty("os.arch") == "aarch64"
Expand All @@ -52,9 +54,7 @@ kotlin {
}
}

jvm {
withSourcesJar(publish = false)
}
jvm()

sourceSets {
// -- COMMON --
Expand Down Expand Up @@ -223,6 +223,10 @@ val githubProperties: Properties = Properties().apply {
properties.onSuccess { load(it) }
}

tasks.getByName("jvmSourcesJar") {
enabled = false
}

publishing {
repositories {
maven {
Expand Down

0 comments on commit 591c09a

Please sign in to comment.