Skip to content

Commit

Permalink
Use Gradle type-safe project accessors (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt authored Sep 1, 2022
1 parent ceeab84 commit 82f2ba1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion logging-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
api(project(":logging"))
api(projects.logging)
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions logging-ktor-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
api(project(":logging"))
api(projects.logging)
api(libs.ktor.core)
api(libs.ktor.logging)
}
}

val commonTest by getting {
dependencies {
implementation(project(":logging-test"))
implementation(project(":test"))
implementation(projects.loggingTest)
implementation(projects.test)
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
implementation(libs.ktor.mock)
Expand Down
2 changes: 1 addition & 1 deletion logging-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
api(project(":logging"))
api(projects.logging)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion logging/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ kotlin {

val commonTest by getting {
dependencies {
implementation(project(":logging-test"))
implementation(projects.loggingTest)
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enableFeaturePreview("VERSION_CATALOGS")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

pluginManagement {
repositories {
Expand Down
4 changes: 2 additions & 2 deletions temporal/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ kotlin {

val commonTest by getting {
dependencies {
implementation(project(":test"))
implementation(projects.test)
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
implementation(libs.kotlinx.coroutines.test)
Expand All @@ -49,7 +49,7 @@ kotlin {

val androidMain by getting {
dependencies {
implementation(project(":coroutines"))
implementation(projects.coroutines)
}
}

Expand Down

0 comments on commit 82f2ba1

Please sign in to comment.