Skip to content

Commit

Permalink
seperated common into modules
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoMarlir committed Jun 2, 2024
1 parent 03de650 commit d55afb4
Show file tree
Hide file tree
Showing 24 changed files with 39 additions and 4 deletions.
4 changes: 0 additions & 4 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ dependencies {
implementation(project(":api"))
implementation(libs.bundles.ktorClient)
implementation(libs.guice)
implementation(libs.clikt)
implementation(libs.mordant)
implementation(libs.mordantCoroutines)
implementation(kotlin("reflect"))
}

tasks.test {
Expand Down
17 changes: 17 additions & 0 deletions common/cli/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
plugins {
alias(libs.plugins.jvm)
}

repositories {
mavenCentral()
}

dependencies {
implementation(libs.clikt)
implementation(libs.mordant)
implementation(libs.mordantCoroutines)
}

kotlin {
jvmToolchain(21)
}
12 changes: 12 additions & 0 deletions common/platforms/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
plugins {
alias(libs.plugins.jvm)
}

repositories {
mavenCentral()
}

dependencies {
implementation(libs.bundles.ktorClient)
implementation(kotlin("reflect"))
}
1 change: 1 addition & 0 deletions node/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ repositories {
dependencies {
implementation(project(":api"))
implementation(project(":common"))
implementation(project(":common:cli"))
implementation(project(":wrapper")) // TODO
implementation(libs.kotlinxSerializationJson)
implementation(libs.guice)
Expand Down
8 changes: 8 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ include("api")
include("common")
include("wrapper")
include("node")

val commonModulesExclude = listOf("build", "src")

File("common/").listFiles()
?.filter { !commonModulesExclude.contains(it.name) && !it.isFile}
?.forEach {
include(":${it.path.replace("/", ":")}")
}
1 change: 1 addition & 0 deletions wrapper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ repositories {
dependencies {
implementation(project(":api"))
implementation(project(":common"))
implementation(project(":common:cli"))
implementation(project(":runner"))
implementation(libs.kotlinxSerializationJson)
implementation(libs.guice)
Expand Down

0 comments on commit d55afb4

Please sign in to comment.