Skip to content

Commit

Permalink
chore: Update dependencies and prepare next release
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Jan 9, 2025
1 parent 3406776 commit 8af7bd5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tasks.dexJar {
}

tasks.mergeJar {
archiveFileName.set("kotlin-runtime.jar")
archiveFileName = "kotlin-runtime.jar"
}

tasks.register("getArtifactPath") {
Expand Down Expand Up @@ -137,10 +137,10 @@ indra {

spotless {
kotlin {
ktlint()
ktfmt().kotlinlangStyle()
licenseHeaderFile(rootProject.file("HEADER.txt"))
}
kotlinGradle {
ktlint()
ktlint().editorConfigOverride(mapOf("ktlint_code_style" to "intellij_idea", "max_line_length" to "120"))
}
}
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
kotlin = "2.1.0"
kotlinx-coroutines = "1.10.1"
kotlinx-serialization = "1.7.3"
spotless = "6.25.0"
kotlinx-serialization = "1.8.0"
spotless = "7.0.1"
indra = "3.1.3"
shadow = "8.3.5"
toxopid = "4.1.1"
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "KotlinRuntime",
"author": "Xpdustry",
"description": "A companion mod for Kotlin based mods and plugins.",
"version": "4.0.1",
"version": "4.1.0",
"minGameVersion": "146",
"hidden": true,
"java": true,
Expand Down
25 changes: 20 additions & 5 deletions src/main/kotlin/com/xpdustry/kotlin/KotlinRuntimeMod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,31 @@
package com.xpdustry.kotlin

import arc.util.Log
import mindustry.mod.Mod
import java.util.Properties
import mindustry.mod.Mod

@Suppress("unused")
class KotlinRuntimeMod : Mod() {
override fun init() {
val properties = Properties()
javaClass.classLoader.getResourceAsStream("com/xpdustry/kotlin/versions.properties")!!.use { properties.load(it.reader()) }
Log.debug("&lb&fb[KotlinRuntime]&fr Kotlin stdlib and reflect (@) are now available.", "v" + properties["kotlin.base"])
Log.debug("&lb&fb[KotlinRuntime]&fr Kotlin coroutines (@) is now available.", "v" + properties["kotlinx.coroutines"])
Log.debug("&lb&fb[KotlinRuntime]&fr Kotlin serialization (@) is now available.", "v" + properties["kotlinx.serialization"])

javaClass.classLoader.getResourceAsStream("com/xpdustry/kotlin/versions.properties")!!.use {
properties.load(it.reader())
}

Log.debug(
"&lb&fb[KotlinRuntime]&fr Kotlin stdlib+reflect (@) is now available.",
"v" + properties["kotlin.base"],
)

Log.debug(
"&lb&fb[KotlinRuntime]&fr Kotlin coroutines (@) is now available.",
"v" + properties["kotlinx.coroutines"],
)

Log.debug(
"&lb&fb[KotlinRuntime]&fr Kotlin serialization (@) is now available.",
"v" + properties["kotlinx.serialization"],
)
}
}

0 comments on commit 8af7bd5

Please sign in to comment.