mirror of
https://github.com/apple/pkl.git
synced 2026-03-24 10:01:10 +01:00
41 lines
1.0 KiB
Kotlin
41 lines
1.0 KiB
Kotlin
plugins {
|
|
pklAllProjects
|
|
pklKotlinLibrary
|
|
pklPublishLibrary
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
named<MavenPublication>("library") {
|
|
pom {
|
|
url.set("https://github.com/apple/pkl/tree/main/pkl-codegen-kotlin")
|
|
description.set("""
|
|
Kotlin source code generator that generates corresponding Kotlin classes for Pkl classes,
|
|
simplifying consumption of Pkl configuration as statically typed Kotlin objects.
|
|
""".trimIndent())
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.jar {
|
|
manifest {
|
|
attributes += mapOf("Main-Class" to "org.pkl.codegen.kotlin.Main")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":pkl-commons"))
|
|
api(project(":pkl-commons-cli"))
|
|
api(project(":pkl-core"))
|
|
|
|
implementation(libs.kotlinPoet)
|
|
implementation(libs.kotlinReflect)
|
|
|
|
testImplementation(project(":pkl-config-kotlin"))
|
|
testImplementation(project(":pkl-commons-test"))
|
|
testImplementation(libs.kotlinCompilerEmbeddable)
|
|
testRuntimeOnly(libs.kotlinScriptingCompilerEmbeddable)
|
|
testRuntimeOnly(libs.kotlinScriptUtil)
|
|
}
|