I got started with Spring Boot with Kotlin by following this tutorial https://spring.io/guides/tutorials/spring-boot-kotlin/.
I am getting this message in IntelliJ as the attached image. Through searching, I read that this would not happen if
jpa
plugin is installed, but when I checked
build.gradle.kts
the
jpa
plugin was of course already installed, since I was following the steps in the tutorial.
Copy code
plugins {
id("org.springframework.boot") version "2.2.6.RELEASE"
id("io.spring.dependency-management") version "1.0.9.RELEASE"
kotlin("jvm") version "1.3.71"
kotlin("plugin.spring") version "1.3.71"
kotlin("plugin.jpa") version "1.3.71"
kotlin("plugin.allopen") version "1.3.71"
}
So what am I missing here?
JP
03/29/2020, 3:52 AM
I edited the kotlin plugins’ version from “1.3.71” to “1.3.70", and the message disappeared.
@Entity
class Article {
var id: Long = 0
var name: String = ""
var desc: String? = null
}
j
JP
03/30/2020, 6:09 AM
@leodeng I think that’s automatically done via the jpa plugin, and that seems true since when I checked the project structure, it showed this:
l
leodeng
03/30/2020, 3:29 PM
hmm, i think you’re right about jpa plugin also applies the noarg plugin. i guess if you run gradle in command line, everything works fine? could it be the intellij version?
j
JP
03/31/2020, 12:04 PM
@leodeng Yes, IntelliJ complains, but I was still able to build and run the app.
l
leodeng
04/01/2020, 2:19 AM
i can only think of a few things to try but am not sure if those will help, like: update intellij to the latest version, enable annotation processing, change gradle runner to Gradle instead of IntelliJ IDEA