3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

ci: Sign artifacts

Dieser Commit ist enthalten in:
NotMyFault 2021-11-25 13:14:49 +01:00
Ursprung 121bd58029
Commit 22f52fc4e1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C
2 geänderte Dateien mit 7 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -21,6 +21,7 @@ import org.gradle.kotlin.dsl.invoke
import org.gradle.kotlin.dsl.named import org.gradle.kotlin.dsl.named
import org.gradle.kotlin.dsl.provideDelegate import org.gradle.kotlin.dsl.provideDelegate
import org.gradle.kotlin.dsl.register import org.gradle.kotlin.dsl.register
import org.gradle.kotlin.dsl.the
import org.gradle.plugins.signing.SigningExtension import org.gradle.plugins.signing.SigningExtension
import javax.inject.Inject import javax.inject.Inject
@ -184,13 +185,15 @@ fun Project.applyLibrariesConfiguration() {
mapToMavenScope("runtime") mapToMavenScope("runtime")
} }
val publishingExtension = the<PublishingExtension>()
configure<SigningExtension> { configure<SigningExtension> {
if (!version.toString().endsWith("-SNAPSHOT")) { if (!version.toString().endsWith("-SNAPSHOT")) {
val signingKey: String? by project val signingKey: String? by project
val signingPassword: String? by project val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword) useInMemoryPgpKeys(signingKey, signingPassword)
isRequired isRequired
sign(tasks["publications"]) sign(publishingExtension.publications)
} }
} }

Datei anzeigen

@ -47,13 +47,15 @@ fun Project.applyPlatformAndCoreConfiguration() {
skip() skip()
} }
val publishingExtension = the<PublishingExtension>()
configure<SigningExtension> { configure<SigningExtension> {
if (!version.toString().endsWith("-SNAPSHOT")) { if (!version.toString().endsWith("-SNAPSHOT")) {
val signingKey: String? by project val signingKey: String? by project
val signingPassword: String? by project val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword) useInMemoryPgpKeys(signingKey, signingPassword)
isRequired isRequired
sign(tasks["publications"]) sign(publishingExtension.publications)
} }
} }