mirror of
https://github.com/tursom/TursomServer.git
synced 2025-01-19 16:50:53 +08:00
38 lines
975 B
Plaintext
38 lines
975 B
Plaintext
plugins {
|
|
kotlin("jvm")
|
|
`maven-publish`
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":ts-core"))
|
|
implementation(project(":ts-core:ts-delegation"))
|
|
api(group = "org.slf4j", name = "slf4j-api", version = "1.7.29")
|
|
api(group = "ch.qos.logback", name = "logback-core", version = "1.2.3")
|
|
api(group = "ch.qos.logback", name = "logback-classic", version = "1.2.3")
|
|
|
|
compileOnly(group = "com.google.code.gson", name = "gson", version = "2.8.6")
|
|
}
|
|
|
|
@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) {
|
|
}
|
|
}
|
|
}
|
|
}
|