Skip to content

Commit

Permalink
chore: use safe project accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
outadoc committed May 6, 2022
1 parent d306eae commit b08a4b1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ include(":toothpick-compiler-ksp-factory")
include(":toothpick-compiler-ksp-memberinjector")
include(":toothpick-compiler-test")

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
Expand Down
3 changes: 1 addition & 2 deletions toothpick-compiler-ksp-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ tasks.withType<KotlinCompile> {
}

dependencies {
api(libs.inject)
api(libs.tp)
api(libs.inject)

implementation(libs.ksp)

implementation(libs.kotlinpoet.core)
implementation(libs.kotlinpoet.ksp)
}
8 changes: 3 additions & 5 deletions toothpick-compiler-ksp-factory/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@ tasks.withType<KotlinCompile> {
}

dependencies {
api(libs.inject)
api(libs.tp)

implementation(project(":toothpick-compiler-ksp-core"))
api(libs.inject)

implementation(libs.ksp)

implementation(libs.kotlinpoet.core)
implementation(libs.kotlinpoet.ksp)
implementation(projects.toothpickCompilerKspCore)

testImplementation(project(":toothpick-compiler-test"))
testImplementation(libs.junit4)
testImplementation(libs.compiletesting.kt)
testImplementation(projects.toothpickCompilerTest)
}
8 changes: 3 additions & 5 deletions toothpick-compiler-ksp-memberinjector/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@ tasks.withType<KotlinCompile> {
}

dependencies {
api(libs.inject)
api(libs.tp)

implementation(project(":toothpick-compiler-ksp-core"))
api(libs.inject)

implementation(libs.ksp)

implementation(libs.kotlinpoet.core)
implementation(libs.kotlinpoet.ksp)
implementation(projects.toothpickCompilerKspCore)

testImplementation(project(":toothpick-compiler-test"))
testImplementation(libs.junit4)
testImplementation(libs.compiletesting.kt)
testImplementation(projects.toothpickCompilerTest)
}
7 changes: 3 additions & 4 deletions toothpick-compiler-ksp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ tasks.withType<KotlinCompile> {
}

dependencies {
implementation(project(":toothpick-compiler-ksp-factory"))
implementation(project(":toothpick-compiler-ksp-memberinjector"))

implementation(libs.ksp)
implementation(projects.toothpickCompilerKspFactory)
implementation(projects.toothpickCompilerKspMemberinjector)

testImplementation(project(":toothpick-compiler-test"))
testImplementation(libs.junit4)
testImplementation(libs.compiletesting.kt)
testImplementation(projects.toothpickCompilerTest)
}

0 comments on commit b08a4b1

Please sign in to comment.