Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-04 23:30:24 +01:00
Fix publishing
Co-authored-by: jmp <jasonpenilla2@me.com>
Dieser Commit ist enthalten in:
Ursprung
f1eef0294f
Commit
d3a3e366b1
@ -54,7 +54,23 @@ subprojects {
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
}
|
||||
}
|
||||
|
||||
// Configure shadow tasks before the publishing task
|
||||
sequenceOf(
|
||||
projects.viaversionBukkit,
|
||||
projects.viaversionBungee,
|
||||
projects.viaversionFabric,
|
||||
projects.viaversionSponge,
|
||||
projects.viaversionVelocity
|
||||
).map { it.dependencyProject }.forEach { project ->
|
||||
project.configureShadowJar()
|
||||
}
|
||||
|
||||
projects.viaversionApi.dependencyProject.configureShadowJarAPI()
|
||||
projects.viaversion.dependencyProject.apply<ShadowPlugin>()
|
||||
|
||||
subprojects {
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("mavenJava") {
|
||||
@ -80,18 +96,6 @@ subprojects {
|
||||
}
|
||||
}
|
||||
|
||||
sequenceOf(
|
||||
projects.viaversionBukkit,
|
||||
projects.viaversionBungee,
|
||||
projects.viaversionFabric,
|
||||
projects.viaversionSponge,
|
||||
projects.viaversionVelocity
|
||||
).map { it.dependencyProject }.forEach { project ->
|
||||
project.configureShadowJar()
|
||||
}
|
||||
|
||||
projects.viaversionApi.dependencyProject.configureShadowJarAPI()
|
||||
|
||||
tasks {
|
||||
// root project has no useful artifacts
|
||||
withType<Jar> {
|
||||
|
@ -1,9 +1,5 @@
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
|
||||
plugins {
|
||||
id("com.github.johnrengelman.shadow")
|
||||
}
|
||||
|
||||
tasks {
|
||||
withType<ShadowJar> {
|
||||
archiveClassifier.set("")
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren