Fix kotlinx packages
This commit is contained in:
parent
6ceebb93ff
commit
9719276292
|
@ -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")
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue