TursomServer/ts-core/ts-async-http/build.gradle.kts

49 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-04-19 15:47:15 +08:00
plugins {
kotlin("jvm")
`maven-publish`
}
2021-04-11 22:48:14 +08:00
2021-04-19 15:47:15 +08:00
dependencies {
api(project(":"))
api(project(":ts-core"))
2021-04-19 15:57:47 +08:00
api(project(":ts-core:ts-buffer"))
2021-04-19 15:47:15 +08:00
implementation(project(":ts-core:ts-xml"))
2021-07-09 20:29:24 +08:00
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
2021-04-19 15:47:15 +08:00
api(group = "com.squareup.retrofit2", name = "converter-gson", version = "2.9.0")
2021-04-11 22:48:14 +08:00
// https://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit
2021-04-19 15:47:15 +08:00
api(group = "com.squareup.retrofit2", name = "retrofit", version = "2.9.0")
2021-04-11 22:48:14 +08:00
// https://mvnrepository.com/artifact/org.jsoup/jsoup
2021-04-19 15:47:15 +08:00
api(group = "org.jsoup", name = "jsoup", version = "1.13.1")
2021-04-19 15:57:47 +08:00
testImplementation(project(":ts-core:ts-coroutine"))
2021-04-19 15:47:15 +08:00
}
@kotlin.Suppress("UNCHECKED_CAST")
(rootProject.ext["excludeTest"] as (Project, TaskContainer) -> Unit)(project, tasks)
tasks.register("install") {
finalizedBy(tasks["publishToMavenLocal"])
}
2021-04-19 16:19:35 +08:00
artifacts {
archives(tasks["kotlinSourcesJar"])
}
2021-04-19 15:47:15 +08:00
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(components["java"])
try {
2021-04-19 16:19:35 +08:00
artifact(tasks["kotlinSourcesJar"])
2021-04-19 15:47:15 +08:00
} catch (e: Exception) {
}
}
}
2021-04-11 22:48:14 +08:00
}