From 2ef2d602138e18c9888b77208ab01fe5e250d3dc Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 4 Jan 2022 22:55:14 +0600 Subject: [PATCH] update publish scripts --- publish.gradle | 17 +++++++++-------- publish.kpsb | 1 + publish_config.kpsb | 1 - 3 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 publish.kpsb delete mode 100644 publish_config.kpsb diff --git a/publish.gradle b/publish.gradle index 9ef93cf..788128f 100644 --- a/publish.gradle +++ b/publish.gradle @@ -19,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 { @@ -61,12 +61,13 @@ publishing { } } } - -if (System.getProperty("signatory.keyId") != null) { + +if (project.hasProperty("signing.gnupg.keyName")) { apply plugin: 'signing' - + signing { useGpgCmd() + sign publishing.publications } -} +} \ No newline at end of file diff --git a/publish.kpsb b/publish.kpsb new file mode 100644 index 0000000..f674888 --- /dev/null +++ b/publish.kpsb @@ -0,0 +1 @@ +{"licenses":[{"id":"MIT","title":"MIT License","url":"https://opensource.org/licenses/MIT"}],"mavenConfig":{"name":"${project.name}","description":"${project.name}","url":"https://github.com/InsanusMokrassar/TelegramBotApiLibraries","vcsUrl":"https://github.com/InsanusMokrassar/TelegramBotApiLibraries.git","developers":[{"id":"InsanusMokrassar","name":"Ovsiannikov Aleksei","eMail":"ovsyannikov.alexey95@gmail.com"}],"repositories":[{"name":"GithubPackages","url":"https://maven.pkg.github.com/InsanusMokrassar/TelegramBotApiLibraries"},{"name":"sonatype","url":"https://oss.sonatype.org/service/local/staging/deploy/maven2/"}],"gpgSigning":{"type":"dev.inmo.kmppscriptbuilder.core.models.GpgSigning.Optional"}}} \ No newline at end of file diff --git a/publish_config.kpsb b/publish_config.kpsb deleted file mode 100644 index b3b6bbb..0000000 --- a/publish_config.kpsb +++ /dev/null @@ -1 +0,0 @@ -{"licenses":[{"id":"MIT","title":"MIT License","url":"https://opensource.org/licenses/MIT"}],"mavenConfig":{"name":"${project.name}","description":"${project.name}","url":"https://github.com/InsanusMokrassar/TelegramBotApiLibraries","vcsUrl":"https://github.com/InsanusMokrassar/TelegramBotApiLibraries.git","includeGpgSigning":true,"developers":[{"id":"InsanusMokrassar","name":"Ovsiannikov Aleksei","eMail":"ovsyannikov.alexey95@gmail.com"}],"repositories":[{"name":"GithubPackages","url":"https://maven.pkg.github.com/InsanusMokrassar/TelegramBotApiLibraries"},{"name":"sonatype","url":"https://oss.sonatype.org/service/local/staging/deploy/maven2/"}]}} \ No newline at end of file