diff --git a/scalabot-app/build.gradle.kts b/scalabot-app/build.gradle.kts index 61a8c7e..f49c820 100644 --- a/scalabot-app/build.gradle.kts +++ b/scalabot-app/build.gradle.kts @@ -9,7 +9,7 @@ plugins { dependencies { implementation(project(":scalabot-extension")) - implementation("org.slf4j:slf4j-api:1.7.32") + implementation("org.slf4j:slf4j-api:1.7.33") implementation("io.github.microutils:kotlin-logging:2.1.21") implementation("ch.qos.logback:logback-classic:1.2.10") @@ -18,8 +18,6 @@ dependencies { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0") implementation("com.google.code.gson:gson:2.8.9") - // implementation("org.dom4j:dom4j:2.1.3") - implementation("org.jdom:jdom2:2.0.6.1") implementation("org.telegram:telegrambots-abilities:5.6.0") diff --git a/scalabot-ext-example/build.gradle.kts b/scalabot-ext-example/build.gradle.kts index 10e00c2..f16529f 100644 --- a/scalabot-ext-example/build.gradle.kts +++ b/scalabot-ext-example/build.gradle.kts @@ -9,7 +9,7 @@ repositories { dependencies { compileOnly(project(":scalabot-extension")) - testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0") + testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine") } diff --git a/scalabot-extension/build.gradle.kts b/scalabot-extension/build.gradle.kts index a92efbd..43a7e0d 100644 --- a/scalabot-extension/build.gradle.kts +++ b/scalabot-extension/build.gradle.kts @@ -3,12 +3,15 @@ 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.32") - testImplementation(kotlin("test")) + api("org.slf4j:slf4j-api:1.7.33") + + // There is nothing to test. + // testImplementation(kotlin("test")) } tasks.withType { @@ -29,3 +32,53 @@ tasks.test { tasks.withType { kotlinOptions.jvmTarget = "11" } + +publishing { + repositories { + maven { + credentials { + + } + url = uri("") + } + } + + publications { + create("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") + } + } + } + } + +}