59 lines
1.2 KiB
Groovy
59 lines
1.2 KiB
Groovy
plugins {
|
|
id("com.gradleup.shadow") version "9.3.0"
|
|
id("maven-publish")
|
|
}
|
|
|
|
version = KUBIK_CLIENT_VERSION
|
|
|
|
tasks {
|
|
shadowJar {
|
|
manifest {
|
|
attributes (
|
|
"Multi-Release": true,
|
|
"Add-Opens": "java.base/java.lang java.base/java.lang.reflect"
|
|
)
|
|
}
|
|
|
|
mergeServiceFiles()
|
|
}
|
|
|
|
assemble {
|
|
dependsOn shadowJar, processResources
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api project(":api")
|
|
|
|
api 'com.squareup.okhttp3:okhttp:5.3.2'
|
|
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)
|
|
}
|
|
}
|
|
}
|
|
}
|