mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
ci: Sign artifacts
This commit is contained in:
parent
121bd58029
commit
22f52fc4e1
@ -21,6 +21,7 @@ import org.gradle.kotlin.dsl.invoke
|
||||
import org.gradle.kotlin.dsl.named
|
||||
import org.gradle.kotlin.dsl.provideDelegate
|
||||
import org.gradle.kotlin.dsl.register
|
||||
import org.gradle.kotlin.dsl.the
|
||||
import org.gradle.plugins.signing.SigningExtension
|
||||
import javax.inject.Inject
|
||||
|
||||
@ -184,13 +185,15 @@ fun Project.applyLibrariesConfiguration() {
|
||||
mapToMavenScope("runtime")
|
||||
}
|
||||
|
||||
val publishingExtension = the<PublishingExtension>()
|
||||
|
||||
configure<SigningExtension> {
|
||||
if (!version.toString().endsWith("-SNAPSHOT")) {
|
||||
val signingKey: String? by project
|
||||
val signingPassword: String? by project
|
||||
useInMemoryPgpKeys(signingKey, signingPassword)
|
||||
isRequired
|
||||
sign(tasks["publications"])
|
||||
sign(publishingExtension.publications)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -47,13 +47,15 @@ fun Project.applyPlatformAndCoreConfiguration() {
|
||||
skip()
|
||||
}
|
||||
|
||||
val publishingExtension = the<PublishingExtension>()
|
||||
|
||||
configure<SigningExtension> {
|
||||
if (!version.toString().endsWith("-SNAPSHOT")) {
|
||||
val signingKey: String? by project
|
||||
val signingPassword: String? by project
|
||||
useInMemoryPgpKeys(signingKey, signingPassword)
|
||||
isRequired
|
||||
sign(tasks["publications"])
|
||||
sign(publishingExtension.publications)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user