mirror of
https://github.com/tursom/TursomServer.git
synced 2025-02-23 18:20:09 +08:00
34 lines
737 B
Plaintext
34 lines
737 B
Plaintext
|
plugins {
|
||
|
kotlin("jvm")
|
||
|
`maven-publish`
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
api(project(":"))
|
||
|
implementation(project(":ts-core"))
|
||
|
compileOnly(group = "org.springframework.data", name = "spring-data-mongodb", version = "3.1.7")
|
||
|
}
|
||
|
|
||
|
@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) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|