mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-24 19:15:32 +01:00
Fix local publishing
This commit is contained in:
parent
5b0d98f639
commit
aaaa97f781
@ -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/")
|
||||||
|
@ -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() // ?
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user