mirror of
https://github.com/apple/pkl.git
synced 2026-07-08 05:55:13 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user