Skip to content

Commit c01d6ea

Browse files
committed
Revert ":hammer: refactor build.gradle.kts to move signing configuration to subprojects block"
This reverts commit 013c8b6.
1 parent b2fee40 commit c01d6ea

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

build.gradle.kts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,3 @@ nexusPublishing {
2626
}
2727
}
2828
}
29-
30-
subprojects {
31-
plugins.withId("maven-publish") {
32-
extensions.configure<SigningExtension>("signing") {
33-
useInMemoryPgpKeys(
34-
providers.gradleProperty("signingInMemoryKey").orNull,
35-
providers.gradleProperty("signingInMemoryKeyPassword").orNull,
36-
)
37-
val publishing = extensions.getByType(PublishingExtension::class.java)
38-
sign(publishing.publications)
39-
}
40-
}
41-
}

qs-kotlin-android/build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ android {
2424

2525
compilerOptions {
2626
jvmTarget.set(JvmTarget.JVM_17)
27-
languageVersion.set(KotlinVersion.KOTLIN_2_0)
28-
apiVersion.set(KotlinVersion.KOTLIN_2_0)
27+
languageVersion.set(KotlinVersion.KOTLIN_2_0)
28+
apiVersion.set(KotlinVersion.KOTLIN_2_0)
2929
}
3030
}
3131

@@ -83,4 +83,6 @@ afterEvaluate {
8383
}
8484
}
8585
}
86+
87+
signing { sign(publishing.publications) }
8688
}

qs-kotlin/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,11 @@ publishing {
8787
}
8888
}
8989
}
90+
91+
signing {
92+
useInMemoryPgpKeys(
93+
providers.gradleProperty("signingInMemoryKey").getOrElse(""),
94+
providers.gradleProperty("signingInMemoryKeyPassword").getOrElse(""),
95+
)
96+
sign(publishing.publications)
97+
}

0 commit comments

Comments
 (0)