mirror of
https://github.com/apple/pkl.git
synced 2026-03-30 05:41:54 +02:00
* Remove unnecessary strictfp modifier * Add annotations to address Truffle DSL warnings (@Idempotent, @Exclusive) * Adjust build logic to allow building cross-arch on macOS * Add warning suppression for specialization limit (left this one as a TODO)
53 lines
1.3 KiB
Kotlin
53 lines
1.3 KiB
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
pklAllProjects
|
|
pklKotlinLibrary
|
|
pklPublishLibrary
|
|
pklHtmlValidator
|
|
@Suppress("DSL_SCOPE_VIOLATION") // https://youtrack.jetbrains.com/issue/KTIJ-19369
|
|
alias(libs.plugins.kotlinxSerialization)
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.pklCore)
|
|
implementation(projects.pklCommonsCli)
|
|
implementation(projects.pklCommons)
|
|
implementation(libs.commonMark)
|
|
implementation(libs.commonMarkTables)
|
|
implementation(libs.kotlinxHtml)
|
|
implementation(libs.kotlinxSerializationJson) {
|
|
// use our own Kotlin version
|
|
// (exclude is supported both for Maven and Gradle metadata, whereas dependency constraints aren't)
|
|
exclude(group = "org.jetbrains.kotlin")
|
|
}
|
|
|
|
testImplementation(projects.pklCommonsTest)
|
|
testImplementation(libs.jimfs)
|
|
|
|
// Graal.JS
|
|
testImplementation(libs.graalSdk)
|
|
testImplementation(libs.graalJs)
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
named<MavenPublication>("library") {
|
|
pom {
|
|
url.set("https://github.com/apple/pkl/tree/main/pkl-doc")
|
|
description.set("Documentation generator for Pkl modules.")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.jar {
|
|
manifest {
|
|
attributes += mapOf("Main-Class" to "org.pkl.doc.Main")
|
|
}
|
|
}
|
|
|
|
htmlValidator {
|
|
sources = files("src/test/files/DocGeneratorTest/output")
|
|
}
|