-
I have successfully run a project with Kotlin + gradle kts + spring data jpa + querydsl 4.4. However, now I want to replace JPA with
Any hints will be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
@F43nd1r could you explain the kotlin-codegen introduced in v5? |
Beta Was this translation helpful? Give feedback.
-
You don't need this just because your project is using kotlin, but it brings some advantages:
I developed this plugin because I had issues with cross-compilation of kotlin and java, which was solved by this as well, but that's mostly anecdotal. |
Beta Was this translation helpful? Give feedback.
-
Hi, I have a project running with Spring Boot 2.5.5 and Spring Data. Gradle version 7.2 In build.kts: Everything works, but if I add: kapt("com.querydsl:querydsl-kotlin-codegen:5.0.0") Spring will throw this exception: Any help? I cannot understand if this is more an issue to be raise on Spring Data. Thanks in advance, |
Beta Was this translation helpful? Give feedback.
-
still seams like issue with Spring Boot 3.0.2 as stated by @alvistar above |
Beta Was this translation helpful? Give feedback.
querydsl-kotlin-codegen
does exactly one thing: It replaces all java code generation inquerydsl-apt
with kotlin code. It's only used in addition to the apt module:You don't need this just because your project is using kotlin, but it brings some advantages:
I…