-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
54 lines (39 loc) · 1.14 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
48
49
50
51
52
53
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.0-RC"
`maven-publish`
}
group = "me.yujinyan"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
kotlin {
explicitApi()
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
val retrofitVersion = "2.9.0"
val kotestVersion = "4.4.3"
val moshiVersion = "1.12.0"
dependencies {
api("com.squareup.retrofit2:retrofit:$retrofitVersion")
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
testImplementation("com.squareup.okhttp3:mockwebserver:4.9.0")
testImplementation("com.squareup.moshi:moshi-kotlin:$moshiVersion")
testImplementation("com.squareup.moshi:moshi:$moshiVersion")
testImplementation("com.squareup.retrofit2:converter-moshi:$retrofitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.0")
}
tasks.withType<Test> {
useJUnitPlatform()
}