-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (61 loc) · 1.64 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
73
74
75
buildscript {
ext.kotlin_version = '1.2.10'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
group 'kotlin-blockchain-crypto'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: "idea"
apply plugin: 'application'
mainClassName = "MainKt"
processResources.destinationDir = compileJava.destinationDir
compileJava.dependsOn processResources
kapt {
generateStubs = false
}
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "http://repository.jetbrains.com/all" }
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "com.sparkjava:spark-core:2.6.0"
compile "com.fasterxml.jackson.core:jackson-databind:2.8.8.1"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.8.8"
compile "com.github.kittinunf.fuel:fuel:1.12.1" //for JVM
compile "com.github.kittinunf.fuel:fuel-gson:1.12.1" //for Gson support
testCompile "junit:junit:4.12"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
manifest {
attributes "Main-Class" : "MainKt"
}
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
sourceSets {
main.kotlin.srcDirs += 'src/main/kotlin'
main.java.srcDirs += 'src/main/java'
}