[build] Rename task for expanded sources jar

This commit is contained in:
2025-07-28 23:06:58 +02:00
parent 20e08349e7
commit b5263c7a5c

View File

@@ -14,14 +14,14 @@ val expandedSourcesElements = configurations.consumable("expandedSourcesElements
val delombok = tasks.getByName<Delombok>("delombok")
val sourcesJarTask by tasks.registering(Jar::class) {
val sourcesJar by tasks.registering(Jar::class) {
dependsOn(delombok)
from(delombok.target)
archiveClassifier.set("sources")
}
artifacts.add(expandedSourcesElements.name, sourcesJarTask)
artifacts.add(expandedSourcesElements.name, sourcesJar)
tasks.named("build") { dependsOn(sourcesJarTask) }
tasks.named("build") { dependsOn(sourcesJar) }
components.named<AdhocComponentWithVariants>("java") {
addVariantsFromConfiguration(expandedSourcesElements.get()) {}