mirror of
https://github.com/tursom/TursomServer.git
synced 2025-02-13 13:20:49 +08:00
33 lines
698 B
Plaintext
33 lines
698 B
Plaintext
plugins {
|
|
kotlin("jvm")
|
|
`maven-publish`
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":"))
|
|
implementation(group = "com.sun.mail", name = "javax.mail", version = "1.5.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["kotlinSourcesJar"])
|
|
} catch (e: Exception) {
|
|
}
|
|
}
|
|
}
|
|
}
|