chore: published kubik client to maven repository

This commit is contained in:
Andrey Terentev 2026-01-04 14:36:22 +07:00
parent 775890f917
commit 5af7848bda
3 changed files with 32 additions and 1 deletions

View File

@ -1,7 +1,6 @@
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
group = 'ru.dragonestia.kubik'

View File

@ -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)
}
}
}
}

View File

@ -0,0 +1,2 @@
KUBIK_MAVEN_REPOSITORY=https://git.dragonestia.ru/api/packages/Dragonestia/maven
KUBIK_CLIENT_VERSION=1.0.0