In Gradle, we can enable the kotlin-jpa plugin using buildscript with the kotlin-noarg artifact, as follows:
buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-noarg:$kotlin_version"
}
}
apply plugin: "kotlin-jpa"
Alternatively, we can use the Gradle plugins section to enable the kotlin-jpa compiler plugin, as follows:
plugins {
id "org.jetbrains.kotlin.plugin.jpa" version "1.2.41"
}