3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 16:12:42 +01:00

Add back sources collection in universal jar publishing

Dieser Commit ist enthalten in:
Nassim Jahnke 2023-11-06 14:52:37 +10:00
Ursprung e356a35aa7
Commit ffdddeeb0a

Datei anzeigen

@ -19,6 +19,14 @@ tasks {
archiveFileName.set("ViaVersion-${project.version}.jar")
destinationDirectory.set(rootProject.projectDir.resolve("build/libs"))
}
sourcesJar {
rootProject.subprojects.forEach { subproject ->
if (subproject == project) return@forEach
val platformSourcesJarTask = subproject.tasks.findByName("sourcesJar") as? Jar ?: return@forEach
dependsOn(platformSourcesJarTask)
from(zipTree(platformSourcesJarTask.archiveFile))
}
}
}
val branch = rootProject.branchName()