diff --git a/convention-plugins/src/main/kotlin/module.publication.gradle.kts b/convention-plugins/src/main/kotlin/module.publication.gradle.kts index 253681e2..1d54f0d9 100644 --- a/convention-plugins/src/main/kotlin/module.publication.gradle.kts +++ b/convention-plugins/src/main/kotlin/module.publication.gradle.kts @@ -48,12 +48,14 @@ publishing { } signing { - useInMemoryPgpKeys( - System.getenv("OSSRH_GPG_SECRET_KEY_ID"), - System.getenv("OSSRH_GPG_SECRET_KEY"), - System.getenv("OSSRH_GPG_SECRET_KEY_PASSWORD"), - ) - sign(publishing.publications) + if(System.getenv("OSSRH_GPG_SECRET_KEY") != null) { + useInMemoryPgpKeys( + System.getenv("OSSRH_GPG_SECRET_KEY_ID"), + System.getenv("OSSRH_GPG_SECRET_KEY"), + System.getenv("OSSRH_GPG_SECRET_KEY_PASSWORD"), + ) + sign(publishing.publications) + } } // TODO: remove after https://youtrack.jetbrains.com/issue/KT-46466 is fixed diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 00000000..bad55777 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,4 @@ +jdk: + - openjdk11 +install: + - ./gradlew build publishToMavenLocal -x test \ No newline at end of file