From 3290c2eb68e4c78c751845455c7c853b5563660b Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Sat, 4 Nov 2023 17:48:59 +0100 Subject: [PATCH] Update some plugins and dependencies --- build.gradle.kts | 19 ++++++------------- buildSrc/build.gradle.kts | 5 +++-- libs.versions.toml | 4 ++-- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 63b2ed56..953f11dc 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -15,7 +15,6 @@ */ import com.adarshr.gradle.testlogger.theme.ThemeType -import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import org.jetbrains.dokka.gradle.DokkaTask import org.jetbrains.kotlin.gradle.tasks.KotlinCompile @@ -54,10 +53,10 @@ plugins { id("org.jlleitschuh.gradle.ktlint") version "10.3.0" id("com.adarshr.test-logger") version "3.2.0" id("com.asarkar.gradle.build-time-tracker") version "3.0.1" - id("org.jetbrains.dokka") version "1.7.20" + id("org.jetbrains.dokka") version "1.9.10" id("ru.vyarus.use-python") version "2.3.0" id("org.moditect.gradleplugin") version "1.0.0-rc3" - id("com.github.johnrengelman.shadow") version "7.1.2" + id("com.github.johnrengelman.shadow") version "8.1.1" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" `maven-publish` signing @@ -348,19 +347,13 @@ tasks.register("sourcesJar") { from("src/main/kotlin") } -tasks.register("relocateDependencies") { - group = "shadow" - description = "Specifies the ShadowJar task for which to relocate the dependencies." - target = tasks["jarWithDependencies"] as ShadowJar -} - tasks.register("jarWithDependencies") { - dependsOn("relocateDependencies") group = "Build" description = "Assembles a jar archive containing the main classes and all external dependencies." archiveClassifier = "with-dependencies" from(sourceSets.main.get().output) configurations = listOf(project.configurations.runtimeClasspath.get()) + setEnableRelocation(true) manifest { attributes("Main-Class" to linguaMainClass) } } @@ -437,9 +430,9 @@ dependencies { implementation(libs.fastutil) - testImplementation("org.junit.jupiter:junit-jupiter:5.9.0") - testImplementation("org.assertj:assertj-core:3.23.1") - testImplementation("io.mockk:mockk:1.12.5") + testImplementation("org.junit.jupiter:junit-jupiter:5.10.0") + testImplementation("org.assertj:assertj-core:3.24.2") + testImplementation("io.mockk:mockk:1.13.8") accuracyReportImplementation("com.optimaize.languagedetector:language-detector:0.6") accuracyReportImplementation("org.apache.opennlp:opennlp-tools:1.9.4") diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index d7e6481f..dc8ee734 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -15,9 +15,10 @@ java.sourceSets["main"].java { srcDir("$rootDir/../src/main/kotlin/com/github/pemistahl/lingua/internal/model") } +val moshiVersion = "1.15.0" dependencies { - implementation("com.squareup.moshi:moshi:1.13.0") - implementation("com.squareup.moshi:moshi-kotlin:1.13.0") + implementation("com.squareup.moshi:moshi:$moshiVersion") + implementation("com.squareup.moshi:moshi-kotlin:$moshiVersion") implementation(libs.fastutil) } diff --git a/libs.versions.toml b/libs.versions.toml index c29a81e0..66caaf16 100644 --- a/libs.versions.toml +++ b/libs.versions.toml @@ -7,6 +7,6 @@ targetJdk = "1.8" kotlinPlugin = "1.9.10" [libraries] -fastutil = { module = "it.unimi.dsi:fastutil", version = "8.5.8" } +fastutil = { module = "it.unimi.dsi:fastutil", version = "8.5.12" } -# TODO: Maybe add all versions here +# TODO: Maybe specify all versions here