From 6ae403edfd8c8096246ec17e5938b0325f18271d Mon Sep 17 00:00:00 2001 From: Christian Banse Date: Sat, 17 Apr 2021 12:38:11 +0200 Subject: [PATCH] Added support for JitPack (#399) * Added support for JitPack * added jitpack.yml to specify Java version * Only sign jar when publishing to maven central --- build.gradle.kts | 6 ++++++ jitpack.yml | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 jitpack.yml diff --git a/build.gradle.kts b/build.gradle.kts index 68b6d86224..011e1cf580 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -114,7 +114,13 @@ tasks.withType { signing { val signingKey: String? by project val signingPassword: String? by project + useInMemoryPgpKeys(signingKey, signingPassword) + + setRequired({ + gradle.taskGraph.hasTask("publish") + }) + sign(publishing.publications["maven"]) } diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000000..adb3fe10c8 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,2 @@ +jdk: + - openjdk11