-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
45 lines (34 loc) · 1.07 KB
/
build.gradle.kts
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
plugins {
kotlin("jvm") version "1.3.70-eap-42"
kotlin("kapt") version "1.3.61"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
//moshi
kapt("com.squareup.moshi:moshi-kotlin-codegen:1.9.2")
implementation("com.squareup.moshi:moshi:1.9.2")
implementation("com.squareup.moshi:moshi-adapters:1.9.2")
implementation("com.squareup.retrofit2:converter-moshi:2.7.1")
implementation("com.squareup.okhttp3:logging-interceptor:4.3.1")
implementation("com.squareup.retrofit2:retrofit:2.7.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.3")
testImplementation("io.kotlintest:kotlintest-runner-junit5:3.3.0")
testImplementation("com.squareup.okhttp3:mockwebserver:4.3.1")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}