-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (68 loc) · 2.06 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
apply plugin: 'kotlin'
buildscript {
ext.kotlin_version = '1.1.4-3'
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-M4'
}
}
apply plugin: 'application'
apply plugin: 'kotlin-kapt'
repositories {
maven { url "http://maven.geotoolkit.org/"}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testCompile 'junit:junit:4.12'
}
allprojects {
apply plugin: 'idea'
apply plugin: 'kotlin'
apply plugin: 'org.junit.platform.gradle.plugin'
repositories {
maven { url "http://dl.bintray.com/jetbrains/spek" }
maven { url "https://dl.bintray.com/kotlin/kotlin-dev/"}
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile("org.jetbrains.kotlin:kotlin-reflect:${kotlin_version}")
// basic testing libraries
testCompile 'junit:junit:4.12'
testRuntime 'org.jetbrains.spek:spek-junit-platform-engine:1.1.2'
}
compileKotlin {
kotlinOptions.jvmTarget= "1.8"
targetCompatibility = 1.8
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
targetCompatibility = 1.8
}
}
//group 'ch.studerraimann'
//version "${binReaderVersion}"
mainClassName = 'ch.truffer.oskar.MainKt'
jar {
baseName = 'bin-Reader'
}
dependencies {
// UI dependencies
compile 'no.tornado:tornadofx:1.7.9'
// DI Framework
compile 'com.google.dagger:dagger:2.11'
kapt 'com.google.dagger:dagger-compiler:2.11'
}
// At the moment for non-Android projects you need to explicitly
// mark the code generated by kapt as 'generated source code'
// for correct highlighting and resolve in IDE.
idea {
module {
sourceDirs += file('build/generated/source/kapt/main')
generatedSourceDirs += file('build/generated/source/kapt/main')
}
}