3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 16:12:42 +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.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<MavenPublishPlugin>()
apply<IndraPlugin>()
apply<IndraPublishingPlugin>()
apply<IndraSonatypePublishingPlugin>()
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<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 {