mirror of
https://github.com/tursom/TursomServer.git
synced 2025-01-22 10:10:56 +08:00
35 lines
750 B
Plaintext
35 lines
750 B
Plaintext
|
plugins {
|
||
|
kotlin("jvm")
|
||
|
`maven-publish`
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
api(project(":ts-core"))
|
||
|
api(project(":ts-core:ts-buffer"))
|
||
|
api(project(":ts-core:ts-log"))
|
||
|
api(group = "io.netty", name = "netty-all", version = "4.1.43.Final")
|
||
|
}
|
||
|
|
||
|
@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) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|