Skip to content

Commit

Permalink
build: introduce Koin
Browse files Browse the repository at this point in the history
Signed-off-by: Kengo TODA <skypencil@gmail.com>
  • Loading branch information
KengoTODA committed Nov 19, 2023
1 parent e16665d commit 865896f
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 94 deletions.
1 change: 0 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package jp.skypencil.kosmo.backend.storage.onmemory

import jp.skypencil.kosmo.backend.storage.shared.Table
import jp.skypencil.kosmo.backend.storage.shared.Database
import org.koin.core.annotation.Singleton

@Singleton
class OnMemoryDatabase : Database {
private val tables = mutableMapOf<String, OnMemoryTable>()
override suspend fun findTable(name: String): Table =
Expand Down
3 changes: 2 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ repositories {

dependencies {
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.22.0")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.20")
implementation("com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:1.9.20-1.0.14")
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
plugins {
id("jp.skypencil.kosmo.kotlin-common-conventions")

application
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
plugins {
id("org.jetbrains.kotlin.jvm")
id("com.diffplug.spotless")
id("com.google.devtools.ksp")
}

sourceSets.main {
// KSP - To use generated sources
java.srcDirs("build/generated/ksp/main/kotlin")
}

repositories {
Expand All @@ -14,7 +20,12 @@ java {
}

val kotest = "5.8.0"
val koin = "3.5.0"
val koinKsp = "1.3.0"
dependencies {
implementation("io.insert-koin:koin-core:$koin")
compileOnly("io.insert-koin:koin-annotations:$koinKsp")
ksp("io.insert-koin:koin-ksp-compiler:$koinKsp")
testImplementation("io.kotest:kotest-assertions-core:$kotest")
testImplementation("io.kotest:kotest-property:$kotest")
testRuntimeOnly("io.kotest:kotest-runner-junit5:$kotest")
Expand Down
3 changes: 0 additions & 3 deletions frontend/build.gradle.kts

This file was deleted.

86 changes: 0 additions & 86 deletions frontend/src/main/kotlin/jp/skypencil/kosmo/list/LinkedList.kt

This file was deleted.

2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ plugins {
}

rootProject.name = "kosmo"
include("backend", "frontend")
include("backend")

0 comments on commit 865896f

Please sign in to comment.