-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (51 loc) · 1.72 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
buildscript {
ext.kotlin_version = '1.3.41'
ext.rxkotlin_version = '2.2.0'
ext.ktlint_plugin_version = '8.2.0'
repositories {
mavenCentral()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:$ktlint_plugin_version"
}
}
plugins {
id 'java'
id 'org.jlleitschuh.gradle.ktlint' version "$ktlint_plugin_version"
}
group 'org.wycliffeassociates'
apply plugin: 'kotlin'
apply plugin: 'org.jlleitschuh.gradle.ktlint'
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "io.reactivex.rxjava2:rxkotlin:$rxkotlin_version"
compile "com.jakewharton.rxrelay2:rxrelay:2.1.0"
// Testing
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile "org.mockito:mockito-core:2.+"
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0"
// Resource Container
implementation 'org.wycliffeassociates:kotlin-resource-container'
// Explicitly mention reflection lib so Gradle and kotlin-resource-container's Jackson
// dependencies coexist w/o warnings. This can be removed once the krc lib is updated
// to Jackson 2.9.8+.
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.allWarningsAsErrors = true
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.allWarningsAsErrors = true
}
ktlint {
coloredOutput = false // Colors break source links in the IDEA console.
}