kitgit

tirbofish/dropbear · commit

69aec71b868b28ec0c6ace0cea504c4f9266022a

Merge pull request #51 feature: swap on demand

Unverified

tk <4tkbytes@pm.me> · 2025-10-15 10:39

view full diff

diff --git a/build.gradle.kts b/build.gradle.kts
index 38a2db5..639a8a0 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -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 {
             }
         }
     }
-}
\ No newline at end of file
+}
+
+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 {}
+}
diff --git a/docs/notes.md b/docs/notes.md

Large diffs are not rendered by default. Showing the first 50 of 2103 lines. Show full diff