mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 01:55:47 +01:00
Fix publishing
Co-authored-by: jmp <jasonpenilla2@me.com>
This commit is contained in:
parent
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("")
|
||||||
|
Loading…
Reference in New Issue
Block a user