-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
43 lines (33 loc) · 1.01 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
plugins {
id 'java'
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.3.60'
}
group 'krepl'
version '1.0-SNAPSHOT'
sourceCompatibility = 11
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
// Kotlin stuff we need..
compile group: 'org.jetbrains.kotlin', name: 'kotlin-script-util', version: '1.3.60'
compile group: 'org.jetbrains.kotlin', name: 'kotlin-script-runtime', version: '1.3.60'
compile group: 'org.jetbrains.kotlin', name: 'kotlin-compiler-embeddable', version: '1.3.60'
compile group: 'org.jetbrains.kotlin', name: 'kotlin-scripting-compiler', version: '1.3.60'
// This is to load the kotlin-compiler.jar, which it seems we need to add manually like this..
compile fileTree(dir: 'libs', include: ['*.jar'])
}
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}
application {
mainClassName = 'krepl.Main'
}
run {
standardInput = System.in
}