Deploy to Devsoap Code
This commit is contained in:
@@ -32,6 +32,7 @@ buildscript {
|
||||
ext {
|
||||
hasSignatureKey = findProperty("DEVSOAP_GPG_KEY_BASE64") != null
|
||||
sonatypeToken = findProperty("SONATYPE_TOKEN") as String
|
||||
devsoapToken = findProperty("DEVSOAP_DEPLOY_TOKEN") as String
|
||||
signingKeyBase64 = (findProperty("DEVSOAP_GPG_KEY_BASE64") as String)?.getBytes(StandardCharsets.UTF_8)
|
||||
signingKey = hasSignatureKey ? new String(Base64.decoder.decode(signingKeyBase64)) : ""
|
||||
signingPassword = hasSignatureKey ? findProperty("DEVSOAP_GPG_PASSWORD") : ""
|
||||
@@ -44,6 +45,19 @@ signing {
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
name = "DSCode"
|
||||
url = uri("https://code.devsoap.com/api/packages/john/maven")
|
||||
credentials(HttpHeaderCredentials) {
|
||||
name = "Authorization"
|
||||
value = "token ${devsoapToken}"
|
||||
}
|
||||
authentication {
|
||||
header(HttpHeaderAuthentication)
|
||||
}
|
||||
}
|
||||
}
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
from components.java
|
||||
|
||||
Reference in New Issue
Block a user