how does one configure the JPA plugin in gradle ko...
# gradle
j
how does one configure the JPA plugin in gradle kotlin dsl ? The no-arg plugin and jpa plugin is applied like this:
Copy code
plugins {
    id("org.jetbrains.kotlin.plugin.noarg").version(kotlinVersion)
    id("org.jetbrains.kotlin.plugin.jpa").version(kotlinVersion)
}
and then the noArg one i figured out can be configured like this
Copy code
noArg {
	annotation(...)
}
how does one do that for the jpa plugin? I'm trying to translate this maven to gradle kotlin dsl:
Copy code
<configuration>
                    <jvmTarget>${java.version}</jvmTarget>
                    <compilerPlugins>
                        <plugin>jpa</plugin>
                    </compilerPlugins>
                    <pluginOptions>
                        <option>jpa:annotation=javax.persistence.MappedSuperclass</option>
                    </pluginOptions>
                </configuration>
s
you don't configure the
jpa
plugin.
👍 1
the jpa plugin is literally the noarg plugin with some preexisting annotations.
👍 1
👆 1
j
interesting !
c
Also, since you're using kotlin-dsl, you can write:
Copy code
plugins {
    kotlin("plugin.jpa") version kotlinVersion
}
No need to specify full id and no need to specify no-arg if you only need it for JPA.
j
that's really cool!