mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 01:55:47 +01:00
Add back sources collection in universal jar publishing
This commit is contained in:
parent
e356a35aa7
commit
ffdddeeb0a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user