-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
50 lines (44 loc) · 1.09 KB
/
build.gradle.kts
File metadata and controls
50 lines (44 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// ==-----------------------------------------------------------== //
// SPDX-FileCopyrightText: © 2025 Nayan Patil <nayantsg@proton.me>
//
// SPDX-License-Identifier: Apache-2.0
// ==-----------------------------------------------------------== //
plugins {
id("org.pkl-lang") version "0.28.2"
base
}
pkl {
tests {
register("testStdSchema") {
projectDir.set(file("."))
sourceModules.set(fileTree(projectDir) { include("tests/*.pkl") })
overwrite.set(false)
}
}
project {
resolvers {
register("resolveStdSchema") {
projectDirectories.from(file("."))
}
}
packagers {
register("makeStdSchemaPkg") {
projectDirectories.from(file("."))
}
}
}
pkldocGenerators {
register("makeStdSchemaPklDoc") {
projectDir.set(file("."))
sourceModules.set(fileTree(projectDir) {
include("stdschema/*.pkl")
include("doc-package-info.pkl")
include("docsite-info.pkl")
})
outputDir = (layout.projectDirectory.dir("tmp-docs"))
}
}
}
tasks.check {
dependsOn("makeStdSchemaPklDoc")
}