-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please provide full example for a kotlin project #413
Comments
Hi @ogesaku, I don't use much Kotlin so can't help with most points here. But, there is currently a problem with the IntelliJ plugin in K2 mode, with no practical solution yet: casid/jte-intellij#49 You could try if disabling K2 mode in IntelliJ helps, but this isn't a long term solution I'm afraid. |
I have basically the same feedback, couldn't get to work the gradle plugin with jooby. and simply trying adding to the build.gradle.kts:
Crashes with error:
Upon upgrading Gradlew versions to 8.7 and up to current 8.12 I get a different error:
Is there a compatibility matrix on what gradle, gradle plugin, kotlin and jte versions are working? I find strange to have a Let me know if there is anything I can help. |
It seems there are some problems with the jte gradle plugin and the latest version of Kotlin. #412 I think @marcospereira is working on a fix here #411, but I can't tell you when that one will be ready. |
Hey, thanks for the library!
I would like to use jte in a kotlin project, but keep hitting walls. It would be really handy to have a full example of the most basic usage:
.kte
templatesjte-kotlin
ascompileOnly
as described in Add kotlin and kte documentation #351build.gradle.kts
- as this is the standard for modern kotlin projectsMy findings so far:
jte-kotlin
ascompileOnly
doesn't work for development. Fails withgg.jte.TemplateException: Failed to create kotlin generator. To handle .kte files, you need to add gg.jte:jte-kotlin to your project.
. Unfortunately I think it must be specified asimplementation
but then it comes with a whole lot of kotlin compilation dependencies.@import
withPackage directive and imports are forbidden in code fragments
Env:
The text was updated successfully, but these errors were encountered: