From a1c2e48622e7dd66730d6b3dbfcbe5363c3e7b72 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 4 Jan 2022 19:33:47 +0600 Subject: [PATCH] potential fix for build issues --- publish.gradle | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/publish.gradle b/publish.gradle index 6cfed12..9ef93cf 100644 --- a/publish.gradle +++ b/publish.gradle @@ -1,5 +1,4 @@ apply plugin: 'maven-publish' -apply plugin: 'signing' task javadocsJar(type: Jar) { classifier = 'javadoc' @@ -20,22 +19,22 @@ publishing { } developers { - + developer { id = "InsanusMokrassar" name = "Ovsiannikov Aleksei" email = "ovsyannikov.alexey95@gmail.com" } - + } licenses { - + license { name = "MIT License" url = "https://opensource.org/licenses/MIT" } - + } } repositories { @@ -63,7 +62,11 @@ publishing { } } -signing { - useGpgCmd() - sign publishing.publications +if (System.getProperty("signatory.keyId") != null) { + apply plugin: 'signing' + + signing { + useGpgCmd() + sign publishing.publications + } }