-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (49 loc) · 1.51 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
group 'net.daniero'
version '0.1-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.1.4-3'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven { url "http://dl.bintray.com/jetbrains/spek" }
maven { url "http://jcenter.bintray.com" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile 'org.funktionale:funktionale-partials:1.1'
testCompile "org.jetbrains.kotlin:kotlin-test"
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.0.0-RC3'
testCompile group: 'org.junit.platform', name: 'junit-platform-runner', version: '1.0.0-RC3'
testRuntime group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.0.0-RC3'
testCompile 'org.jetbrains.spek:spek-api:1.1.3'
testCompile 'org.jetbrains.spek:spek-junit-platform-engine:1.1.3'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
kotlin {
experimental {
coroutines 'enable'
}
}
mainClassName = 'net.daniero.whatever.MainKt'
jar {
manifest {
attributes 'Main-Class': 'net.daniero.whatever.MainKt'
}
// https://stackoverflow.com/a/26470211/1373657
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}