mirror of
https://github.com/tursom/TursomServer.git
synced 2024-12-28 22:00:51 +08:00
36 lines
845 B
Plaintext
36 lines
845 B
Plaintext
plugins {
|
|
kotlin("jvm")
|
|
`maven-publish`
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":ts-core"))
|
|
implementation(project(":ts-core:ts-buffer"))
|
|
implementation(project(":ts-core:ts-datastruct"))
|
|
compileOnly(project(":ts-core:ts-json"))
|
|
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.29")
|
|
}
|
|
|
|
@kotlin.Suppress("UNCHECKED_CAST")
|
|
(rootProject.ext["excludeTest"] as (Project, TaskContainer) -> Unit)(project, tasks)
|
|
|
|
tasks.register("install") {
|
|
finalizedBy(tasks["publishToMavenLocal"])
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("maven") {
|
|
groupId = project.group.toString()
|
|
artifactId = project.name
|
|
version = project.version.toString()
|
|
|
|
from(components["java"])
|
|
try {
|
|
artifact(tasks["kotlinSourcesJar"])
|
|
} catch (e: Exception) {
|
|
}
|
|
}
|
|
}
|
|
}
|