Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 16:40:10 +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()
|
withSourcesJar()
|
||||||
withJavadocJar()
|
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 {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
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 {
|
tasks {
|
||||||
// root project has no useful artifacts
|
// root project has no useful artifacts
|
||||||
withType<Jar> {
|
withType<Jar> {
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
|
|
||||||
plugins {
|
|
||||||
id("com.github.johnrengelman.shadow")
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
withType<ShadowJar> {
|
withType<ShadowJar> {
|
||||||
archiveClassifier.set("")
|
archiveClassifier.set("")
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren