fixing gradle (*again*)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("common");
|
id("j2s-common");
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
@@ -22,26 +22,28 @@ dependencies {
|
|||||||
testRuntimeOnly("org.junit.platform:junit-platform-launcher");
|
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 {
|
credentials(HttpHeaderCredentials::class) {
|
||||||
repositories {
|
name = "Authorization";
|
||||||
maven {
|
value = "token ${System.getenv("ACCESS_TOKEN")}";
|
||||||
name = "Gitea";
|
}
|
||||||
url = uri(System.getenv("REPO_URL") ?: "");
|
|
||||||
|
|
||||||
credentials(HttpHeaderCredentials::class) {
|
authentication {
|
||||||
name = "Authorization";
|
create<HttpHeaderAuthentication>("header");
|
||||||
value = "token ${System.getenv("ACCESS_TOKEN")}";
|
}
|
||||||
}
|
|
||||||
|
|
||||||
authentication {
|
|
||||||
create<HttpHeaderAuthentication>("header");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
publications {
|
||||||
publications {
|
create<MavenPublication>("maven") {
|
||||||
create<MavenPublication>("maven") {
|
from(components["java"]);
|
||||||
from(components["java"]);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("common-java");
|
id("j2s-common-java");
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "A collection of utils and structures for the rest of the project";
|
description = "A collection of utils and structures for the rest of the project";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("common-java");
|
id("j2s-common-java");
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "A compiler of EcmaScript 5 code to J2S bytecode";
|
description = "A compiler of EcmaScript 5 code to J2S bytecode";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import com.github.gradle.node.npm.task.NpmTask;
|
import com.github.gradle.node.npm.task.NpmTask;
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("common-java");
|
id("j2s-common-java");
|
||||||
id("com.github.node-gradle.node") version "5.0.0";
|
id("com.github.node-gradle.node") version "5.0.0";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("common-java");
|
id("j2s-common-java");
|
||||||
id("com.gradleup.shadow") version "9.0.0-beta4";
|
id("com.gradleup.shadow") version "9.0.0-beta4";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("common-java");
|
id("j2s-common-java");
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "The runtime of J2S, used to execute J2S bytecode";
|
description = "The runtime of J2S, used to execute J2S bytecode";
|
||||||
|
|||||||
Reference in New Issue
Block a user