chore: published kubik client to maven repository
This commit is contained in:
parent
775890f917
commit
5af7848bda
@ -1,7 +1,6 @@
|
||||
subprojects {
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'java-library'
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
group = 'ru.dragonestia.kubik'
|
||||
|
||||
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
KUBIK_MAVEN_REPOSITORY=https://git.dragonestia.ru/api/packages/Dragonestia/maven
|
||||
KUBIK_CLIENT_VERSION=1.0.0
|
||||
Loading…
x
Reference in New Issue
Block a user