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:
Ursprung
a48f717396
Commit
68985141f1
@ -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 {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren