Skip to content

Commit a097b48

Browse files
author
Alex Danilenko
committed
deployment fix
1 parent fbc3a70 commit a097b48

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

core/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
plugins {
2+
id 'signing'
23
id 'maven-publish'
34
id 'java-test-fixtures'
45
}
@@ -15,6 +16,7 @@ dependencies {
1516
java {
1617
// create jar with sources to publish it
1718
withSourcesJar()
19+
withJavadocJar()
1820
}
1921

2022
publishing {
@@ -66,6 +68,16 @@ publishing {
6668
}
6769
}
6870

71+
signing {
72+
def signingKey = System.getenv("MAVEN_GPG_KEY")
73+
def signingKeyId = System.getenv("MAVEN_GPG_KEY_ID")
74+
def signingPassword = System.getenv("MAVEN_GPG_KEY_PASSWORD")
75+
76+
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
77+
78+
sign publishing.publications.mavenJava
79+
}
80+
6981
// generate SpottyVersion file
7082
def spottySrc = "$buildDir/generated/sources/spotty/java"
7183
sourceSets {

0 commit comments

Comments
 (0)