-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
72 lines (53 loc) · 1.73 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
65
66
67
68
69
70
71
72
buildscript {
ext.kotlinVersion = '1.2.60'
ext.junitVersion = "5.0.0"
ext.junitPlatformVersion = "1.0.0"
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.junit.platform:junit-platform-gradle-plugin:$junitPlatformVersion"
}
}
version '0.0.1'
apply plugin: 'kotlin'
apply plugin: 'org.junit.platform.gradle.plugin'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
testCompile "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testCompile "org.junit.jupiter:junit-jupiter-params:$junitVersion"
runtime "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
runtime "org.junit.platform:junit-platform-console:$junitPlatformVersion"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.5'
compile 'com.google.code.gson:gson:2.8.4'
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
compile group: 'commons-codec', name: 'commons-codec', version: '1.5'
compile group: 'com.google.guava', name: 'guava', version: '18.0'
}
//apply from: "junit5.gradle"
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
sourceSets {
main.kotlin.srcDirs += 'src/main/kotlin'
}
kotlin {
experimental {
coroutines "enable"
}
}
jar {
manifest {
attributes 'Main-Class': 'sssemil.com.p2p.dht.MainKt'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}