38 lines
600 B
Groovy
38 lines
600 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
id "net.java.openjdk.shinyafox.jshell.gradle.plugin" version "1.0.4"
|
|
}
|
|
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.google.guava:guava:28.0-jre'
|
|
testImplementation 'junit:junit:4.12'
|
|
}
|
|
|
|
application {
|
|
mainClassName = 'serene.simple.Main'
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes 'Main-Class': 'serene.simple.Main'
|
|
}
|
|
}
|
|
|
|
// run {
|
|
// standardInput = System.in
|
|
// }
|
|
|
|
task repl(type: JavaExec) {
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
main = 'serene.simple.Main'
|
|
standardInput = System.in
|
|
|
|
|
|
}
|