From a15ee0fbee3e0827fe94dfca42ad753adb340fd9 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Thu, 18 Feb 2021 12:35:54 +0100 Subject: [PATCH] Try local publishing --- build.gradle.kts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index a099e444b..59133452e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,10 +1,13 @@ import net.kyori.indra.IndraPlugin import net.kyori.indra.IndraPublishingPlugin +import net.kyori.indra.sonatype.IndraSonatypePublishingPlugin import net.kyori.indra.sonatypeSnapshots plugins { `java-library` + `maven-publish` id("net.kyori.indra") + id("net.kyori.indra.publishing.sonatype") version("1.3.1") apply false } group = "us.myles" @@ -16,6 +19,7 @@ subprojects { apply() apply() apply() + apply() tasks { // Variable replacements @@ -41,6 +45,7 @@ subprojects { } repositories { + mavenLocal() sonatypeSnapshots() maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots") maven("https://nexus.velocitypowered.com/repository/velocity-artifacts-snapshots/") @@ -66,8 +71,16 @@ subprojects { issues = true } mitLicense() - publishAllTo("via", "https://repo.viaversion.com") } + + //TODO use indra with proper repository (currently local)? + /*extensions.configure { + repositories.create("via") { + snapshotRepositoryUrl.set(uri("https://repo.viaversion.com")) + username.set(System.getenv("PUBLISHING_USERNAME")) + password.set(System.getenv("PUBLISHING_PASSWORD")) + } + }*/ } tasks {