Skip to content

Commit

Permalink
Update some plugins and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcono1234 committed Nov 4, 2023
1 parent 2721715 commit 3290c2e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
19 changes: 6 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -348,19 +347,13 @@ tasks.register<Jar>("sourcesJar") {
from("src/main/kotlin")
}

tasks.register<ConfigureShadowRelocation>("relocateDependencies") {
group = "shadow"
description = "Specifies the ShadowJar task for which to relocate the dependencies."
target = tasks["jarWithDependencies"] as ShadowJar
}

tasks.register<ShadowJar>("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) }
}

Expand Down Expand Up @@ -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")
Expand Down
5 changes: 3 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
4 changes: 2 additions & 2 deletions libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3290c2e

Please sign in to comment.