From 3baccc6c12663669a99629692818a366f1cc9441 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 15 Nov 2022 00:18:55 +0600 Subject: [PATCH 1/4] Update gradle.properties --- gradle.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 15868bf..92ff141 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,10 +13,10 @@ kotlin_serialisation_core_version=1.4.1 github_release_plugin_version=2.4.1 -tgbotapi_version=4.1.0 +tgbotapi_version=4.1.1 micro_utils_version=0.14.1 exposed_version=0.40.1 -plagubot_version=3.1.0 +plagubot_version=3.1.1 # Dokka @@ -25,4 +25,4 @@ dokka_version=1.7.20 # Project data group=dev.inmo -version=0.6.1 +version=0.6.2 From 0263fe086247343c76713013c53b2fcbc6695277 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 15 Nov 2022 09:55:35 +0600 Subject: [PATCH 2/4] Update gradle.properties --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 92ff141..ac31edd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,7 +14,7 @@ kotlin_serialisation_core_version=1.4.1 github_release_plugin_version=2.4.1 tgbotapi_version=4.1.1 -micro_utils_version=0.14.1 +micro_utils_version=0.14.2 exposed_version=0.40.1 plagubot_version=3.1.1 From 78c44a2c612dc3e7c7f8008d1268ec682ce9f88b Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 17 Nov 2022 11:32:39 +0600 Subject: [PATCH 3/4] Update gradle.properties --- gradle.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index ac31edd..80f856d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,8 +15,8 @@ github_release_plugin_version=2.4.1 tgbotapi_version=4.1.1 micro_utils_version=0.14.2 -exposed_version=0.40.1 -plagubot_version=3.1.1 +exposed_version=0.41.1 +plagubot_version=3.1.2 # Dokka From 17072092ae980e88a71093f3a4aca9c23281fcac Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 17 Nov 2022 11:35:16 +0600 Subject: [PATCH 4/4] add gitea publication --- publish.gradle | 20 ++++++++++++++++++++ publish.kpsb | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/publish.gradle b/publish.gradle index c6658ea..690e65f 100644 --- a/publish.gradle +++ b/publish.gradle @@ -42,20 +42,40 @@ publishing { maven { name = "GithubPackages" url = uri("https://maven.pkg.github.com/InsanusMokrassar/TelegramBotApiLibraries") + credentials { username = project.hasProperty('GITHUBPACKAGES_USER') ? project.property('GITHUBPACKAGES_USER') : System.getenv('GITHUBPACKAGES_USER') password = project.hasProperty('GITHUBPACKAGES_PASSWORD') ? project.property('GITHUBPACKAGES_PASSWORD') : System.getenv('GITHUBPACKAGES_PASSWORD') } + + } + } + if (project.hasProperty('GITEA_TOKEN') || System.getenv('GITEA_TOKEN') != null) { + maven { + name = "Gitea" + url = uri("https://git.inmo.dev/api/packages/InsanusMokrassar/maven") + + credentials(HttpHeaderCredentials) { + name = "Authorization" + value = project.hasProperty('GITEA_TOKEN') ? project.property('GITEA_TOKEN') : System.getenv('GITEA_TOKEN') + } + + authentication { + header(HttpHeaderAuthentication) + } + } } if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) { maven { name = "sonatype" url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") + credentials { username = project.hasProperty('SONATYPE_USER') ? project.property('SONATYPE_USER') : System.getenv('SONATYPE_USER') password = project.hasProperty('SONATYPE_PASSWORD') ? project.property('SONATYPE_PASSWORD') : System.getenv('SONATYPE_PASSWORD') } + } } } diff --git a/publish.kpsb b/publish.kpsb index f674888..5f07f6c 100644 --- a/publish.kpsb +++ b/publish.kpsb @@ -1 +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 +{"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":"Gitea","url":"https://git.inmo.dev/api/packages/InsanusMokrassar/maven","credsType":{"type":"dev.inmo.kmppscriptbuilder.core.models.MavenPublishingRepository.CredentialsType.HttpHeaderCredentials","headerName":"Authorization","headerValueProperty":"GITEA_TOKEN"}},{"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