File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,7 @@ tasks.register("generate") {
9393 notCompatibleWithConfigurationCache(" Pebble classes are not serializable" )
9494
9595 doLast {
96- val engine = PebbleEngine .Builder ().loader(FileLoader ().apply {
97- prefix = " src/main/templates/"
96+ val engine = PebbleEngine .Builder ().loader(FileLoader (file(" src/main/templates/" ).absolutePath).apply {
9897 suffix = " .pebble"
9998 }).build()
10099 val themeTemplate = engine.getTemplate(" theme" )
@@ -129,6 +128,10 @@ tasks.register("generate") {
129128}
130129
131130tasks {
131+ clean {
132+ delete(" src/main/resources/themes" )
133+ }
134+
132135 // Set the JVM compatibility versions
133136 providers.gradleProperty(" javaVersion" ).get().let {
134137 withType<JavaCompile > {
Original file line number Diff line number Diff line change 22changelog = " 2.5.0"
33intelliJPlatform = " 2.10.5"
44kotlin = " 2.1.21"
5- pebble = " 4.0 .0"
5+ pebble = " 4.1 .0"
66
77[libraries ]
88pebble = { module = " io.pebbletemplates:pebble" , version.ref = " pebble" }
You can’t perform that action at this time.
0 commit comments