From 5af7848bdaaff8bbeb1b0ee038858bab353fe26b Mon Sep 17 00:00:00 2001 From: ScarletRedMan Date: Sun, 4 Jan 2026 14:36:22 +0700 Subject: [PATCH] chore: published kubik client to maven repository --- build.gradle | 1 - client/build.gradle | 30 ++++++++++++++++++++++++++++++ gradle.properties | 2 ++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 8e80ab5..d6488e6 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,6 @@ subprojects { apply plugin: 'java' apply plugin: 'java-library' - apply plugin: 'maven-publish' group = 'ru.dragonestia.kubik' diff --git a/client/build.gradle b/client/build.gradle index 1716de9..9908548 100644 --- a/client/build.gradle +++ b/client/build.gradle @@ -1,7 +1,10 @@ plugins { id("com.gradleup.shadow") version "9.3.0" + id("maven-publish") } +version = KUBIK_CLIENT_VERSION + tasks { shadowJar { manifest { @@ -26,3 +29,30 @@ dependencies { api 'com.squareup.okhttp3:okhttp-sse:5.3.2' api 'com.google.code.gson:gson:2.13.2' } + +publishing { + publications { + maven(MavenPublication) { + groupId = this.group + artifactId = this.getName() + version = this.version + + from components.java + } + } + + repositories { + maven { + url = uri(KUBIK_MAVEN_REPOSITORY) + + credentials(HttpHeaderCredentials) { + name = "Authorization" + value = "token ${dragonestiaGiteaToken}" + } + + authentication { + header(HttpHeaderAuthentication) + } + } + } +} diff --git a/gradle.properties b/gradle.properties index e69de29..e879152 100644 --- a/gradle.properties +++ b/gradle.properties @@ -0,0 +1,2 @@ +KUBIK_MAVEN_REPOSITORY=https://git.dragonestia.ru/api/packages/Dragonestia/maven +KUBIK_CLIENT_VERSION=1.0.0