mirror of
https://github.com/apple/pkl.git
synced 2026-03-24 01:51:19 +01:00
Remove lingering, outdated build target pkldoc
This commit is contained in:
committed by
Dan Chao
parent
0af3f4923a
commit
93b1e7ff01
@@ -7,12 +7,6 @@ plugins {
|
||||
signing
|
||||
}
|
||||
|
||||
val pkldocConfiguration: Configuration = configurations.create("pkldoc")
|
||||
|
||||
dependencies {
|
||||
pkldocConfiguration(project(":pkl-doc"))
|
||||
}
|
||||
|
||||
// create and publish a self-contained stdlib archive
|
||||
// purpose is to provide non-jvm tools/projects with a versioned stdlib
|
||||
val stdlibZip by tasks.registering(Zip::class) {
|
||||
@@ -51,25 +45,3 @@ spotless {
|
||||
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