mirror of
https://github.com/apple/pkl.git
synced 2026-04-19 23:11:29 +02:00
Simplify inputs for javadocJar (#916)
Also, rename `dummy` to `placeholder`
This commit is contained in:
@@ -22,7 +22,7 @@ plugins {
|
|||||||
signing
|
signing
|
||||||
}
|
}
|
||||||
|
|
||||||
val dummy: SourceSet by sourceSets.creating
|
val placeholder: SourceSet by sourceSets.creating
|
||||||
|
|
||||||
val firstPartySourcesJars by configurations.existing
|
val firstPartySourcesJars by configurations.existing
|
||||||
|
|
||||||
@@ -51,15 +51,16 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: need to figure out how to properly generate javadoc here.
|
// TODO: need to figure out how to properly generate javadoc here.
|
||||||
// For now, we'll include a dummy javadoc jar.
|
// For now, we'll include a placeholder javadoc jar.
|
||||||
val javadocDummy by tasks.registering(Javadoc::class) { source = dummy.allJava }
|
val javadocPlaceholder by tasks.registering(Javadoc::class) { source = placeholder.allJava }
|
||||||
|
|
||||||
java { withJavadocJar() }
|
java { withJavadocJar() }
|
||||||
|
|
||||||
val javadocJar by
|
val javadocJar by
|
||||||
tasks.existing(Jar::class) {
|
tasks.existing(Jar::class) {
|
||||||
from(javadocDummy.get().outputs.files)
|
from(javadocPlaceholder)
|
||||||
archiveBaseName.set("pkl-tools-all")
|
archiveBaseName.set("pkl-tools-all")
|
||||||
|
archiveClassifier.set("javadoc")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.shadowJar { archiveBaseName.set("pkl-tools-all") }
|
tasks.shadowJar { archiveBaseName.set("pkl-tools-all") }
|
||||||
@@ -69,8 +70,8 @@ publishing {
|
|||||||
named<MavenPublication>("fatJar") {
|
named<MavenPublication>("fatJar") {
|
||||||
// don't use `-all` suffix because this is the only JAR we publish
|
// don't use `-all` suffix because this is the only JAR we publish
|
||||||
artifactId = "pkl-tools"
|
artifactId = "pkl-tools"
|
||||||
// add dummy javadoc jar to publication
|
// add placeholder javadoc jar to publication
|
||||||
artifact(javadocJar.flatMap { it.archiveFile }) { classifier = "javadoc" }
|
artifact(javadocJar)
|
||||||
pom {
|
pom {
|
||||||
url.set("https://github.com/apple/pkl/tree/main/pkl-tools")
|
url.set("https://github.com/apple/pkl/tree/main/pkl-tools")
|
||||||
description.set(
|
description.set(
|
||||||
|
|||||||
Reference in New Issue
Block a user