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:
Ursprung
121bd58029
Commit
22f52fc4e1
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren