TursomServer/ts-core/ts-buffer/build.gradle.kts
2021-04-11 18:48:18 +08:00

28 lines
525 B
Plaintext

plugins {
kotlin("jvm")
`maven-publish`
}
dependencies {
api(project(":"))
}
@kotlin.Suppress("UNCHECKED_CAST")
(rootProject.ext["excludeTest"] as (Project, TaskContainer) -> Unit)(project, tasks)
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) {
}
}
}
}