diff --git a/app/build.gradle.kts b/app/build.gradle.kts index fa862f2..dfc685d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -8,8 +8,7 @@ plugins { } dependencies { - // Project "app" depends on project "utils". (Project paths are separated with ":", so ":utils" refers to the top-level "utils" project.) - implementation(project(":utils")) + // Project "app" depends on project "lib" implementation(project(":lib")) } diff --git a/settings.gradle.kts b/settings.gradle.kts index 3895352..3c8d8d5 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -21,6 +21,5 @@ plugins { // Learn more about structuring projects with Gradle - https://docs.gradle.org/8.7/userguide/multi_project_builds.html include(":app") include(":lib") -include(":utils") rootProject.name = "json5-kotlin" \ No newline at end of file diff --git a/utils/build.gradle.kts b/utils/build.gradle.kts deleted file mode 100644 index 3fb9d6d..0000000 --- a/utils/build.gradle.kts +++ /dev/null @@ -1,13 +0,0 @@ -plugins { - // Apply the shared build logic from a convention plugin. - // The shared code is located in `buildSrc/src/main/kotlin/kotlin-jvm.gradle.kts`. - id("buildsrc.convention.kotlin-jvm") - // Apply Kotlin Serialization plugin from `gradle/libs.versions.toml`. - alias(libs.plugins.kotlinPluginSerialization) -} - -dependencies { - // Apply the kotlinx bundle of dependencies from the version catalog (`gradle/libs.versions.toml`). - implementation(libs.bundles.kotlinxEcosystem) - testImplementation(kotlin("test")) -} \ No newline at end of file diff --git a/utils/src/main/kotlin/Utilities.kt b/utils/src/main/kotlin/Utilities.kt deleted file mode 100644 index 0829d22..0000000 --- a/utils/src/main/kotlin/Utilities.kt +++ /dev/null @@ -1,17 +0,0 @@ -package org.json5.utils - -import kotlinx.datetime.* -import kotlinx.serialization.Serializable -import kotlinx.coroutines.* - -@Serializable -class Printer(val message: String) { - fun printMessage() = runBlocking { - val now: Instant = Clock.System.now() - launch { - delay(1000L) - println(now.toString()) - } - println(message) - } -} \ No newline at end of file diff --git a/utils/src/test/kotlin/UtilitiesTest.kt b/utils/src/test/kotlin/UtilitiesTest.kt deleted file mode 100644 index fd0cd7c..0000000 --- a/utils/src/test/kotlin/UtilitiesTest.kt +++ /dev/null @@ -1,25 +0,0 @@ -package org.json5.utils - -import kotlin.test.Test -import kotlin.test.assertEquals -import kotlinx.serialization.json.Json -import kotlinx.serialization.encodeToString -import org.json5.utils.* - -internal class PrinterTest { - - @Test - fun testMessage() { - val message = "message" - val testPrinter = Printer(message) - assertEquals(testPrinter.message, message) - } - - @Test - fun testSerialization() { - val message = "message" - val json1 = Json.encodeToString(Printer(message)) - val json2 = Json.encodeToString(Printer(message)) - assertEquals(json1, json2) - } -} \ No newline at end of file