mirror of
https://github.com/tursom/TursomServer.git
synced 2025-01-07 19:00:16 +08:00
35 lines
836 B
Plaintext
35 lines
836 B
Plaintext
plugins {
|
|
kotlin("jvm")
|
|
`maven-publish`
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":ts-core"))
|
|
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")
|
|
}
|
|
|
|
@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["sourcesJar"])
|
|
} catch (e: Exception) {
|
|
}
|
|
}
|
|
}
|
|
}
|