ScalaBot/scalabot-extension/build.gradle.kts
LamGC 36ab898520
build: 更新 Slf4j 和 Junit, 屏蔽扩展包的测试依赖.
更新 Slf4j (1.7.32 -> 1.7.33) 和 Junit (5.6.0 -> 5.8.2).
按版本号规范来讲, 应该不会有兼容性问题.
2022-02-15 13:37:40 +08:00

85 lines
2.1 KiB
Plaintext

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.10"
java
`maven-publish`
}
dependencies {
api("org.telegram:telegrambots-abilities:5.6.0")
api("org.slf4j:slf4j-api:1.7.33")
// There is nothing to test.
// testImplementation(kotlin("test"))
}
tasks.withType<Javadoc> {
options {
encoding = "UTF-8"
}
}
java {
withJavadocJar()
withSourcesJar()
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
publishing {
repositories {
maven {
credentials {
}
url = uri("")
}
}
publications {
create<MavenPublication>("maven") {
from(components["java"])
pom {
name.set("ScalaBot-Extension-api")
description.set(
"Dependencies for developing scalabot " +
"(a robotic application based on the TelegramBots[Github@rubenlagus/TelegramBots] project)"
)
url.set("https://github.com/LamGC/ScalaBot")
licenses {
license {
name.set("The MIT License")
url.set("https://www.opensource.org/licenses/mit-license.php")
}
}
developers {
developer {
id.set("LamGC")
name.set("Lam GC")
email.set("lam827@lamgc.net")
url.set("https://github.com/LamGC")
}
}
scm {
connection.set("scm:git:https://github.com/LamGC/ScalaBot.git")
developerConnection.set("scm:git:ssh://git@github.com:LamGC/ScalaBot.git")
url.set("https://github.com/LamGC/ScalaBot")
}
issueManagement {
url.set("https://github.com/LamGC/ScalaBot/issues")
system.set("Github Issues")
}
}
}
}
}