fixing gradle (*again*)

This commit is contained in:
2025-05-22 11:35:04 +03:00
parent 6e9250ffd1
commit a1a2293af4
7 changed files with 24 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
plugins {
id("common");
id("j2s-common");
}
java {

View File

@@ -22,26 +22,28 @@ dependencies {
testRuntimeOnly("org.junit.platform:junit-platform-launcher");
}
if (System.getenv("REPO_URL") != null) {
publishing {
repositories {
maven {
name = "Gitea";
url = uri(System.getenv("REPO_URL") ?: "");
publishing {
repositories {
maven {
name = "Gitea";
url = uri(System.getenv("REPO_URL") ?: "");
credentials(HttpHeaderCredentials::class) {
name = "Authorization";
value = "token ${System.getenv("ACCESS_TOKEN")}";
}
credentials(HttpHeaderCredentials::class) {
name = "Authorization";
value = "token ${System.getenv("ACCESS_TOKEN")}";
}
authentication {
create<HttpHeaderAuthentication>("header");
authentication {
create<HttpHeaderAuthentication>("header");
}
}
}
}
publications {
create<MavenPublication>("maven") {
from(components["java"]);
publications {
create<MavenPublication>("maven") {
from(components["java"]);
}
}
}
}