Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-26 00:00:33 +01:00
Fix publishing
Dieser Commit ist enthalten in:
Ursprung
d4785f093e
Commit
9e62c161b4
@ -49,7 +49,22 @@ subprojects {
|
|||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
withJavadocJar()
|
withJavadocJar()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Configure shadow tasks before the publishing task
|
||||||
|
sequenceOf(
|
||||||
|
projects.viabackwardsBukkit,
|
||||||
|
projects.viabackwardsBungee,
|
||||||
|
projects.viabackwardsFabric,
|
||||||
|
projects.viabackwardsSponge,
|
||||||
|
projects.viabackwardsVelocity
|
||||||
|
).map { it.dependencyProject }.forEach { project ->
|
||||||
|
project.configureShadowJar()
|
||||||
|
}
|
||||||
|
|
||||||
|
projects.viabackwards.dependencyProject.apply<ShadowPlugin>()
|
||||||
|
|
||||||
|
subprojects {
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
create<MavenPublication>("mavenJava") {
|
||||||
@ -75,16 +90,6 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sequenceOf(
|
|
||||||
projects.viabackwardsBukkit,
|
|
||||||
projects.viabackwardsBungee,
|
|
||||||
projects.viabackwardsFabric,
|
|
||||||
projects.viabackwardsSponge,
|
|
||||||
projects.viabackwardsVelocity
|
|
||||||
).map { it.dependencyProject }.forEach { project ->
|
|
||||||
project.configureShadowJar()
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
withType<Jar> {
|
withType<Jar> {
|
||||||
onlyIf { false }
|
onlyIf { false }
|
||||||
|
@ -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