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"]);
}
}
}
}

View File

@@ -1,5 +1,5 @@
plugins {
id("common-java");
id("j2s-common-java");
}
description = "A collection of utils and structures for the rest of the project";

View File

@@ -1,5 +1,5 @@
plugins {
id("common-java");
id("j2s-common-java");
}
description = "A compiler of EcmaScript 5 code to J2S bytecode";

View File

@@ -1,7 +1,7 @@
import com.github.gradle.node.npm.task.NpmTask;
plugins {
id("common-java");
id("j2s-common-java");
id("com.github.node-gradle.node") version "5.0.0";
}

View File

@@ -1,5 +1,5 @@
plugins {
id("common-java");
id("j2s-common-java");
id("com.gradleup.shadow") version "9.0.0-beta4";
}

View File

@@ -1,5 +1,5 @@
plugins {
id("common-java");
id("j2s-common-java");
}
description = "The runtime of J2S, used to execute J2S bytecode";