2020-03-24 18:02:19 +08:00
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2020-06-20 22:55:07 +08:00
|
|
|
mavenLocal()
|
2020-03-24 18:02:19 +08:00
|
|
|
jcenter()
|
2020-06-20 22:55:07 +08:00
|
|
|
maven(url = "https://dl.bintray.com/kotlin/kotlin-eap")
|
|
|
|
mavenCentral()
|
2020-04-02 22:08:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
sourceSets.all {
|
|
|
|
languageSettings.useExperimentalAnnotation("kotlin.Experimental")
|
|
|
|
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$version"
|
|
|
|
fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
|
|
|
|
|
|
|
|
api("org.jsoup:jsoup:1.12.1")
|
|
|
|
|
|
|
|
api("com.google.code.gson:gson:2.8.6")
|
|
|
|
api(kotlinx("coroutines-core", "1.3.3"))
|
|
|
|
api(ktor("client-core", "1.3.2"))
|
|
|
|
api(ktor("client-cio", "1.3.2"))
|
|
|
|
api(ktor("client-json", "1.3.2"))
|
2020-06-20 22:55:07 +08:00
|
|
|
|
2020-06-28 11:45:21 +08:00
|
|
|
compileOnly(gradleApi())
|
2020-08-16 23:21:11 +08:00
|
|
|
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0-rc")
|
2020-06-28 11:45:21 +08:00
|
|
|
compileOnly("com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5")
|
2020-06-20 22:55:07 +08:00
|
|
|
api("com.github.jengelman.gradle.plugins:shadow:6.0.0")
|
2020-03-24 18:02:19 +08:00
|
|
|
}
|