2021-09-19 19:33:39 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
2021-09-02 17:04:56 +02:00
|
|
|
plugins {
|
|
|
|
// Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
|
2021-09-19 19:52:14 +02:00
|
|
|
kotlin("jvm") version "latest.release"
|
2021-09-02 17:04:56 +02:00
|
|
|
|
|
|
|
// Apply the application plugin to add support for building a CLI application in Java.
|
|
|
|
application
|
|
|
|
}
|
|
|
|
|
2021-09-19 19:23:45 +02:00
|
|
|
group = "de.jotoho"
|
2021-09-19 20:43:17 +02:00
|
|
|
version = "0.1.1"
|
2021-09-19 19:23:45 +02:00
|
|
|
|
2021-09-02 17:04:56 +02:00
|
|
|
repositories {
|
|
|
|
// Use Maven Central for resolving dependencies.
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// Align versions of all Kotlin components
|
2021-09-19 19:52:14 +02:00
|
|
|
implementation(platform(kotlin("bom", "latest.release")))
|
2021-09-02 17:04:56 +02:00
|
|
|
|
2021-09-19 19:33:39 +02:00
|
|
|
// Use the Kotlin standard library.
|
2021-09-19 19:52:14 +02:00
|
|
|
implementation(kotlin("stdlib", "latest.release"))
|
2021-09-02 17:04:56 +02:00
|
|
|
|
|
|
|
// Use the Kotlin test library.
|
2021-09-19 19:52:14 +02:00
|
|
|
testImplementation(kotlin("test", "latest.release"))
|
2021-09-02 17:04:56 +02:00
|
|
|
|
|
|
|
// Use the Kotlin JUnit integration.
|
2021-09-19 19:52:14 +02:00
|
|
|
testImplementation(kotlin("test-junit", "latest.release"))
|
2021-09-02 17:04:56 +02:00
|
|
|
}
|
|
|
|
|
2021-09-05 21:12:28 +02:00
|
|
|
java {
|
2021-09-19 19:58:37 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_16
|
|
|
|
targetCompatibility = JavaVersion.VERSION_16
|
2021-09-05 21:12:28 +02:00
|
|
|
}
|
|
|
|
|
2021-09-19 19:33:39 +02:00
|
|
|
tasks.test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
2021-09-19 20:10:36 +02:00
|
|
|
tasks.withType<KotlinCompile> {
|
2021-09-19 19:58:37 +02:00
|
|
|
kotlinOptions.jvmTarget = "16"
|
2021-09-05 21:12:28 +02:00
|
|
|
}
|
|
|
|
|
2021-09-02 17:04:56 +02:00
|
|
|
application {
|
|
|
|
// Define the main class for the application.
|
|
|
|
mainClass.set("de.jotoho.waituntil.StartKt")
|
|
|
|
}
|