From b245b3818be4a1838c6b1e19bc52c26e97108644 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Thu, 5 Dec 2024 18:51:52 -0800 Subject: [PATCH] Config for jetpack --- .../src/main/kotlin/module.publication.gradle.kts | 14 ++++++++------ jitpack.yml | 4 ++++ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 jitpack.yml 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