Fix local publishing

This commit is contained in:
KennyTV 2021-02-18 12:53:42 +01:00
parent 5b0d98f639
commit aaaa97f781
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
3 changed files with 2 additions and 3 deletions

View File

@ -42,7 +42,6 @@ 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/")

View File

@ -10,7 +10,7 @@ fun Project.configureShadowJar() {
apply<ShadowPlugin>() apply<ShadowPlugin>()
tasks { tasks {
withType<ShadowJar> { withType<ShadowJar> {
archiveClassifier.set("") archiveClassifier.set("jar")
archiveFileName.set("ViaVersion-${project.name.substringAfter("viaversion-").capitalize()}-${project.version}.jar") archiveFileName.set("ViaVersion-${project.name.substringAfter("viaversion-").capitalize()}-${project.version}.jar")
destinationDirectory.set(rootProject.projectDir.resolve("build/libs")) destinationDirectory.set(rootProject.projectDir.resolve("build/libs"))
//minimize() // ? //minimize() // ?

View File

@ -1,7 +1,7 @@
tasks { tasks {
val universalJar = register<Jar>("universalJar") { val universalJar = register<Jar>("universalJar") {
artifacts.add("archives", this) artifacts.add("archives", this)
archiveClassifier.set("") archiveClassifier.set("jar")
archiveFileName.set("ViaVersion-${project.version}.jar") archiveFileName.set("ViaVersion-${project.version}.jar")
destinationDirectory.set(rootProject.projectDir.resolve("build/libs")) destinationDirectory.set(rootProject.projectDir.resolve("build/libs"))
duplicatesStrategy = DuplicatesStrategy.EXCLUDE duplicatesStrategy = DuplicatesStrategy.EXCLUDE