3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 00:22:51 +01:00

Try local publishing

Dieser Commit ist enthalten in:
KennyTV 2021-02-18 12:35:54 +01:00
Ursprung a48f717396
Commit 68985141f1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -1,10 +1,13 @@
import net.kyori.indra.IndraPlugin import net.kyori.indra.IndraPlugin
import net.kyori.indra.IndraPublishingPlugin import net.kyori.indra.IndraPublishingPlugin
import net.kyori.indra.sonatype.IndraSonatypePublishingPlugin
import net.kyori.indra.sonatypeSnapshots import net.kyori.indra.sonatypeSnapshots
plugins { plugins {
`java-library` `java-library`
`maven-publish`
id("net.kyori.indra") id("net.kyori.indra")
id("net.kyori.indra.publishing.sonatype") version("1.3.1") apply false
} }
group = "us.myles" group = "us.myles"
@ -16,6 +19,7 @@ subprojects {
apply<MavenPublishPlugin>() apply<MavenPublishPlugin>()
apply<IndraPlugin>() apply<IndraPlugin>()
apply<IndraPublishingPlugin>() apply<IndraPublishingPlugin>()
apply<IndraSonatypePublishingPlugin>()
tasks { tasks {
// Variable replacements // Variable replacements
@ -41,6 +45,7 @@ subprojects {
} }
repositories { repositories {
mavenLocal()
sonatypeSnapshots() sonatypeSnapshots()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots") maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots")
maven("https://nexus.velocitypowered.com/repository/velocity-artifacts-snapshots/") maven("https://nexus.velocitypowered.com/repository/velocity-artifacts-snapshots/")
@ -66,8 +71,16 @@ subprojects {
issues = true issues = true
} }
mitLicense() mitLicense()
publishAllTo("via", "https://repo.viaversion.com")
} }
//TODO use indra with proper repository (currently local)?
/*extensions.configure<de.marcphilipp.gradle.nexus.NexusPublishExtension> {
repositories.create("via") {
snapshotRepositoryUrl.set(uri("https://repo.viaversion.com"))
username.set(System.getenv("PUBLISHING_USERNAME"))
password.set(System.getenv("PUBLISHING_PASSWORD"))
}
}*/
} }
tasks { tasks {