2022-09-02 22:08:24 +02:00
|
|
|
plugins {
|
|
|
|
|
id("application")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
group = "xyz.ctsk"
|
|
|
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
|
|
|
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
application {
|
2022-09-03 20:22:29 +02:00
|
|
|
mainClass.set("xyz.ctsk.lox.Lox")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.jar {
|
|
|
|
|
manifest {
|
|
|
|
|
attributes(mapOf("Main-Class" to "xyz.ctsk.lox.Lox"))
|
|
|
|
|
}
|
2022-09-02 22:08:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks.getByName<Test>("test") {
|
|
|
|
|
useJUnitPlatform()
|
2022-09-03 20:22:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.named<JavaExec>("run") {
|
|
|
|
|
standardInput = System.`in`
|
2022-09-02 22:08:24 +02:00
|
|
|
}
|