From 384f3c8a180e86018e1872273de94abfad23bf74 Mon Sep 17 00:00:00 2001 From: Com6235 Date: Mon, 29 Apr 2024 22:16:35 +0300 Subject: [PATCH] Edit publishing settings --- build.gradle.kts | 34 +++++++++++++++++++++++++++++++++- gradle.properties | 2 ++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 18626d3..543f31b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,6 +6,7 @@ plugins { id("org.jetbrains.dokka") version "1.9.20" idea `maven-publish` + signing } group = "io.github.com6235" @@ -75,6 +76,32 @@ publishing { from(components["kotlin"]) artifact(jdArtifact) artifact(srcArtifact) + pom { + packaging = "jar" + groupId = group.toString() + artifactId = project.name + version = project.version.toString() + name = "${group}:${project.name}" + description = "A framework for creating Telegram bots with ease. Made using official Telegram API" + url = "https://github.com/Com6235/tgBotter" + licenses { + license { + name = "MIT License" + url = "https://opensource.org/license/mit" + } + } + developers { + developer { + id = "com6235" + name = "Com6235" + } + } + scm { + connection = "scm:git:git://github.com/Com6235/tgBotter.git" + developerConnection = "scm:git:ssh://github.com:Com6235/tgBotter.git" + url = "https://github.com/Com6235/tgBotter" + } + } } } @@ -88,4 +115,9 @@ publishing { } } } -} \ No newline at end of file +} + +signing { + useGpgCmd() + sign(publishing.publications["kotlin"]) +} diff --git a/gradle.properties b/gradle.properties index 7fc6f1f..73857ed 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,3 @@ kotlin.code.style=official + +systemProp.org.gradle.internal.publish.checksums.insecure=true