It’s taking me an embarrassing amount of time and effort to create the JPA (Point) Tutorial with Gradle and Kotlin (build.gradle.kts specifically) as a new Gradle-Kotlin user.
(The Tutorial is straight forward using the native IntelliJ build system.)
First, I’d be tremendously grateful if someone has a Tutorial build.gradle.kts file and would post a copy.
Second, I thought it might be valuable to have a thread where people could post and find Gradle-Kotlin code potentially useful to ObjectDB projects.
The following Tutorial Gradle-Kotlin looks okay to me so far:
Ron
plugins {
id("java")
}
group = "tutorial"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.jar {
manifest {
attributes["Main-Class"] = "tutorial.Main"
}
}
tasks.test {
useJUnitPlatform()
}
