Fix kotlinx packages

This commit is contained in:
Username404-59 2021-05-03 12:28:12 +02:00
parent 6ceebb93ff
commit 9719276292
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,7 @@ subprojects {
// The following lines are needed at least for the current version of proguard
dontwarn("java.**")
val homeDir = System.getProperty("java.home") as String
libraryjars(configurations.compileClasspath)
if (JavaVersion.current().isJava9Compatible) {
libraryjars("$homeDir/jmods/java.base.jmod")
} else libraryjars("$homeDir/lib/rt.jar")
@ -101,7 +102,7 @@ allprojects {
}
tasks {
withType(ShadowJar::class) {
relocate("kotlinx", "${rootProject.group}.kotlinx")
relocate("kotlinx-datetime", "${rootProject.group}.kotlinx-datetime")
relocate("org.jetbrains", "${rootProject.group}.jetbrainslibs")
relocate("com.typesafe.config", "${rootProject.group}.typesafe.config")
relocate("io.github.config4k", "${rootProject.group}.config4k")

View File

@ -17,6 +17,7 @@ object Configuration {
private val file: File = File(Minecraft.getInstance().gameDirectory.absolutePath + File.separator + "snowy.conf")
private suspend fun writeConfig(c: Config) = coroutineScope {
launch {
println("yesyesyes")
file.writeText(
"""
Snowy {