mirror of
https://github.com/apple/pkl.git
synced 2026-04-23 00:38:37 +02:00
Remove lingering, outdated build target pkldoc
This commit is contained in:
committed by
Philip K.F. Hölzenspies
parent
ba52ac73da
commit
eeb9f0b86e
@@ -7,12 +7,6 @@ plugins {
|
|||||||
signing
|
signing
|
||||||
}
|
}
|
||||||
|
|
||||||
val pkldocConfiguration: Configuration = configurations.create("pkldoc")
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
pkldocConfiguration(project(":pkl-doc"))
|
|
||||||
}
|
|
||||||
|
|
||||||
// create and publish a self-contained stdlib archive
|
// create and publish a self-contained stdlib archive
|
||||||
// purpose is to provide non-jvm tools/projects with a versioned stdlib
|
// purpose is to provide non-jvm tools/projects with a versioned stdlib
|
||||||
val stdlibZip by tasks.registering(Zip::class) {
|
val stdlibZip by tasks.registering(Zip::class) {
|
||||||
@@ -51,25 +45,3 @@ spotless {
|
|||||||
licenseHeaderFile(rootProject.file("buildSrc/src/main/resources/license-header.line-comment.txt"), "/// ")
|
licenseHeaderFile(rootProject.file("buildSrc/src/main/resources/license-header.line-comment.txt"), "/// ")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val pkldoc by tasks.registering(JavaExec::class) {
|
|
||||||
val stdlibFiles = project.fileTree(projectDir).matching {
|
|
||||||
include("*.pkl")
|
|
||||||
exclude("doc-package-info.pkl")
|
|
||||||
}
|
|
||||||
val infoFiles = project.files("doc-package-info.pkl")
|
|
||||||
|
|
||||||
inputs.files(stdlibFiles)
|
|
||||||
inputs.files(infoFiles)
|
|
||||||
outputs.dir("$buildDir/pkldoc")
|
|
||||||
|
|
||||||
classpath = pkldocConfiguration
|
|
||||||
main = "org.pkl.doc.Main"
|
|
||||||
args("--output-dir", "$buildDir/pkldoc")
|
|
||||||
args(stdlibFiles.map { "pkl:${it.name}".dropLast(4) })
|
|
||||||
args(infoFiles)
|
|
||||||
|
|
||||||
doLast {
|
|
||||||
println("Generated Standard Library API Docs at: file://$buildDir/pkldoc/index.html")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user