casid / jte

Secure and speedy templates for Java and Kotlin.
https://jte.gg
Apache License 2.0
748 stars 56 forks source link

Kotlin compile args #294

Closed casid closed 10 months ago

casid commented 10 months ago

This should fix #293.

Ideally, this would pick up the required JDK version from the project configuration (like maven does this for Java), but I have no idea how to do that for Kotlin.

For now, this would need to be added to the precompile task:

jte {
    precompile()
    kotlinCompileArgs.set(arrayOf("-jvm-target", "17"))
}
codecov[bot] commented 10 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (dd8b9f5) 91.22% compared to head (40b0356) 91.21%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #294 +/- ## ============================================ - Coverage 91.22% 91.21% -0.01% - Complexity 1193 1197 +4 ============================================ Files 76 76 Lines 3123 3132 +9 Branches 482 484 +2 ============================================ + Hits 2849 2857 +8 Misses 167 167 - Partials 107 108 +1 ``` | [Files](https://app.codecov.io/gh/casid/jte/pull/294?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andreas+Hager) | Coverage Δ | | |---|---|---| | [...e-runtime/src/main/java/gg/jte/TemplateConfig.java](https://app.codecov.io/gh/casid/jte/pull/294?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andreas+Hager#diff-anRlLXJ1bnRpbWUvc3JjL21haW4vamF2YS9nZy9qdGUvVGVtcGxhdGVDb25maWcuamF2YQ==) | `100.00% <ø> (ø)` | | | [...e-runtime/src/main/java/gg/jte/TemplateEngine.java](https://app.codecov.io/gh/casid/jte/pull/294?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andreas+Hager#diff-anRlLXJ1bnRpbWUvc3JjL21haW4vamF2YS9nZy9qdGUvVGVtcGxhdGVFbmdpbmUuamF2YQ==) | `94.11% <100.00%> (+0.10%)` | :arrow_up: | | [...va/gg/jte/compiler/kotlin/KotlinClassCompiler.java](https://app.codecov.io/gh/casid/jte/pull/294?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andreas+Hager#diff-anRlLWtvdGxpbi9zcmMvbWFpbi9qYXZhL2dnL2p0ZS9jb21waWxlci9rb3RsaW4vS290bGluQ2xhc3NDb21waWxlci5qYXZh) | `82.35% <85.71%> (+0.53%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.