2021-04-11 18:15:58 +08:00
|
|
|
plugins {
|
|
|
|
kotlin("jvm")
|
2021-04-11 18:48:18 +08:00
|
|
|
`maven-publish`
|
2021-04-11 18:15:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-04-11 23:38:28 +08:00
|
|
|
implementation(project(":"))
|
|
|
|
implementation(project(":ts-core"))
|
|
|
|
implementation(project(":ts-core:ts-buffer"))
|
|
|
|
implementation(project(":ts-core:ts-hash"))
|
2021-04-11 18:15:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@kotlin.Suppress("UNCHECKED_CAST")
|
|
|
|
(rootProject.ext["excludeTest"] as (Project, TaskContainer) -> Unit)(project, tasks)
|
|
|
|
|
2021-04-11 18:56:37 +08:00
|
|
|
tasks.register("install") {
|
|
|
|
finalizedBy(tasks["publishToMavenLocal"])
|
|
|
|
}
|
|
|
|
|
2021-04-11 18:48:18 +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-11 18:48:18 +08:00
|
|
|
} catch (e: Exception) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|