TursomServer/ts-core/ts-json/build.gradle.kts

35 lines
885 B
Plaintext
Raw Normal View History

2021-04-11 23:27:15 +08:00
plugins {
kotlin("jvm")
`maven-publish`
}
dependencies {
2021-04-11 23:38:28 +08:00
implementation(project(":"))
2021-04-11 23:27:15 +08:00
compileOnly(group = "com.google.code.gson", name = "gson", version = "2.8.6")
compileOnly(group = "com.fasterxml.jackson.core", name = "jackson-core", version = "2.10.1")
compileOnly(group = "com.fasterxml.jackson.core", name = "jackson-databind", version = "2.10.1")
}
@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) {
}
}
}
}