Skip to content

Commit

Permalink
fix: Attempt to fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz.gryzbon committed Feb 27, 2022
1 parent eca6669 commit 85fbee0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
3 changes: 2 additions & 1 deletion api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "java"
id "signing"
// id "java"
id "org.jetbrains.kotlin.jvm"
id "org.jetbrains.kotlin.plugin.spring" version "1.6.10"
}
Expand Down
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
plugins {
id 'maven-publish'
id 'java'
// id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
id 'signing'
id 'jacoco'
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
id 'com.palantir.git-version' version '0.12.3'
Expand Down
3 changes: 2 additions & 1 deletion client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'signing'
id 'jacoco'
id "java"
// id "java"
id "org.jetbrains.kotlin.jvm"
id "org.jetbrains.kotlin.plugin.spring" version "1.6.10"
}
Expand Down
28 changes: 15 additions & 13 deletions publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ task javadocJar(type: Jar) {
subprojects {

apply plugin: 'maven-publish'
apply plugin: 'signing'
publishing {
publications {
mavenJava(MavenPublication) {
Expand Down Expand Up @@ -72,6 +73,20 @@ subprojects {
}
}
}

signing {
if (project.findProperty("signingKey")) {
// Use in-memory ascii-armored keys
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
} else {
// Use signing properties in ~/.gradle/gradle.properties
sign publishing.publications.mavenJava
}
}

}

nexusPublishing {
Expand All @@ -82,16 +97,3 @@ nexusPublishing {
}
}
}

signing {
if (project.findProperty("signingKey")) {
// Use in-memory ascii-armored keys
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications
} else {
// Use signing properties in ~/.gradle/gradle.properties
sign publishing.publications
}
}
3 changes: 2 additions & 1 deletion server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'signing'
id "jacoco"
id "java"
// id "java"
id "org.jetbrains.kotlin.jvm"
id "org.jetbrains.kotlin.plugin.spring" version "1.6.10"
}
Expand Down

0 comments on commit 85fbee0

Please sign in to comment.