Skip to content

Commit

Permalink
feat: update to Kotlin Multiplatform 2.0.0
Browse files Browse the repository at this point in the history
This fixes a vulnerability issue, see
https://github.com/derlin/bitdowntoc/security/dependabot/9.

Also simplify the handling of git.properties in gradle.
  • Loading branch information
derlin committed Jun 23, 2024
1 parent 4d8ea40 commit ac3db7a
Show file tree
Hide file tree
Showing 2 changed files with 921 additions and 690 deletions.
10 changes: 3 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import org.jetbrains.kotlin.resolve.compatibility

plugins {
kotlin("multiplatform") version "1.9.10"
kotlin("multiplatform") version "2.0.0"
id("com.gorylenko.gradle-git-properties") version "2.4.1"
id("org.gradlewebtools.minify") version "1.3.2"
`maven-publish`
Expand Down Expand Up @@ -36,10 +34,7 @@ kotlin {
manifest {
attributes["Main-Class"] = "ch.derlin.bitdowntoc.MainKt"
}
from(
listOf(project.layout.buildDirectory.dir("version")) +
configurations.getByName("runtimeClasspath")
.map { if (it.isDirectory) it else zipTree(it) })
from(configurations.getByName("runtimeClasspath").map { if (it.isDirectory) it else zipTree(it) })
}
}
}
Expand All @@ -65,6 +60,7 @@ kotlin {
dependencies {
implementation("com.github.ajalt.clikt:clikt:4.2.2")
}
resources.setSrcDirs(resources.srcDirs.plus(project.layout.buildDirectory.dir("version")))
}
val jvmTest by getting {
dependencies {
Expand Down
Loading

0 comments on commit ac3db7a

Please sign in to comment.