Skip to content

Commit

Permalink
Use typesafe project accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
connorwyatt committed Nov 20, 2023
1 parent 2217927 commit fb44ef2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion eventstore/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins { id("org.jetbrains.kotlin.plugin.serialization") }

dependencies {
implementation(project(":time"))
implementation(projects.time)

implementation(libraries.eventStore.client)
implementation(libraries.kodein.di)
Expand Down
4 changes: 2 additions & 2 deletions eventstore/mongodb-models/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dependencies {
implementation(project(":eventstore"))
implementation(project(":mongodb"))
implementation(projects.eventstore)
implementation(projects.mongodb)
}
12 changes: 6 additions & 6 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
dependencies {
implementation(project(":configuration"))
implementation(project(":eventstore"))
implementation(project(":http"))
implementation(project(":mongodb"))
implementation(project(":rabbitmq"))
implementation(project(":time"))
implementation(projects.configuration)
implementation(projects.eventstore)
implementation(projects.http)
implementation(projects.mongodb)
implementation(projects.rabbitmq)
implementation(projects.time)

implementation(libraries.kodein.di)
implementation(libraries.kodein.di.framework.ktor.server)
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
rootProject.name = "common"

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

include(":configuration")
include(":data")
include(":eventstore")
Expand Down

0 comments on commit fb44ef2

Please sign in to comment.