Skip to content

Commit 2633025

Browse files
committed
chore: jte kotlin model support
1 parent 23edeaa commit 2633025

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

gradle/build-logic/common-plugins/build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ jte {
9393
contentType = gg.jte.ContentType.Plain
9494
sourceDirectory = sourceSets.main.map { it.resources.srcDirs.first().toPath() }
9595
generate()
96-
// jteExtension("gg.jte.models.generator.ModelExtension")
96+
jteExtension("gg.jte.models.generator.ModelExtension") {
97+
property("language", "Kotlin")
98+
// property("interfaceAnnotation", "@foo.bar.MyAnnotation")
99+
// property("implementationAnnotation", "@foo.bar.MyAnnotation")
100+
}
97101
// jteExtension("gg.jte.nativeimage.NativeResourcesExtension")
98102
// binaryStaticContent = true
99103
}
@@ -120,8 +124,8 @@ dependencies {
120124
implementation(libs.build.zip.prefixer)
121125
// Templating
122126
implementation(libs.jte.runtime)
127+
jteGenerate(libs.jte.models)
123128
// compileOnly(libs.jte.kotlin)
124-
// jteGenerate(libs.jte.models)
125129

126130
// External plugins deps to use in precompiled script plugins
127131
// https://docs.gradle.org/current/userguide/custom_plugins.html#applying_external_plugins_in_precompiled_script_plugins

0 commit comments

Comments
 (0)