-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (42 loc) · 1.16 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
buildscript {
ext.versions = [
'rxjava': '2.1.14',
'koptional': '1.6.0',
'spek': '2.0.8',
]
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.50'
id 'maven'
}
group 'com.github.hpost'
version '0.4'
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation "io.reactivex.rxjava2:rxjava:${versions.rxjava}"
implementation "com.gojuno.koptional:koptional:${versions.koptional}"
implementation "com.gojuno.koptional:koptional-rxjava2-extensions:${versions.koptional}"
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
testRuntimeOnly 'org.jetbrains.kotlin:kotlin-reflect'
testImplementation "org.spekframework.spek2:spek-dsl-jvm:${versions.spek}"
testRuntimeOnly "org.spekframework.spek2:spek-runner-junit5:${versions.spek}"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
test {
useJUnitPlatform {
includeEngines 'spek2'
}
}