-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathbuild.gradle.kts
47 lines (37 loc) · 1.26 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
46
47
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
kotlin("jvm") version "1.6.20"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
maven(url="https://mirrors.tencent.com/nexus/repository/maven-public/")
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
implementation("com.bennyhuo.java:portable-android-handler:0.3")
implementation("com.squareup.retrofit2:retrofit:2.7.0")
implementation("com.squareup.retrofit2:converter-gson:2.7.0")
implementation("com.squareup.okhttp3:logging-interceptor:3.14.2")
implementation("io.reactivex.rxjava2:rxjava:2.2.16")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.3")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.3")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-rx2:1.3.3")
testImplementation("junit", "junit", "4.12")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks {
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xallow-result-return-type", "-Xallow-kotlin-package")
}
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}