tirbofish/dropbear · diff
RELOAD ON DEMAND FINALLY WORKS HUZZAHHHHHHHH!!!!
After so long on working on this component of scripting, I have finally gotten reloading working. Thanks to [this article](https://archive.md/WnlBC) and help from my chinese goat Qwen, I have managed to successfully get reload on demand working, as taken from things such as Unity and Unreal. This is really big news as I have had too many hours sunk into this.
Ready to merge!
Signature present but could not be verified.
Unverified
@@ -92,7 +92,8 @@ kotlin { sourceSets { commonMain { dependencies { - api("co.touchlab:kermit:2.0.4") +// api("co.touchlab:kermit:2.0.4") + implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.0") } } nativeMain { @@ -114,6 +115,10 @@ kotlin { compileTaskProvider.configure { compilerOptions { freeCompilerArgs.add("-Xexpect-actual-classes") + // reminding kotlin that this is a library and not an executable + freeCompilerArgs.add("-Xsuppress-warning=UNUSED_PARAMETER") + freeCompilerArgs.add("-Xsuppress-warning=UNUSED_VARIABLE") + freeCompilerArgs.add("-Xsuppress-warning=UNUSED_PRIVATE_MEMBER") } } } @@ -173,4 +178,21 @@ publishing { } } } -} +} + +tasks.register<Jar>("fatJar") { + archiveClassifier.set("all") + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + + from(kotlin.jvm().compilations["main"].output) + + configurations.named("jvmRuntimeClasspath").get().forEach { file -> + if (file.name.endsWith(".jar")) { + from(zipTree(file)) + } else { + from(file) + } + } + + manifest {} +}
Large diffs are not rendered by default. Showing the first 50 of 1617 lines. Show full diff