Skip to content

Commit

Permalink
Merge pull request #84 from amzn/rwo/test-fixture
Browse files Browse the repository at this point in the history
Use testFixtures for compiler test utils
  • Loading branch information
vRallev authored Nov 15, 2024
2 parents 8ee9454 + 9468ca7 commit 439e5b4
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 17 deletions.
13 changes: 0 additions & 13 deletions compiler-test/build.gradle

This file was deleted.

2 changes: 0 additions & 2 deletions compiler-test/gradle.properties

This file was deleted.

8 changes: 8 additions & 0 deletions compiler-utils/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'software.amazon.lib.jvm'
id 'java-test-fixtures'
}

dependencies {
Expand All @@ -9,4 +10,11 @@ dependencies {
implementation project(':runtime')
implementation libs.kotlin.poet.ksp
implementation libs.kotlin.inject.runtime

testFixturesApi libs.kotlin.compile.testing.core
testFixturesApi libs.ksp.api

testFixturesImplementation project(':runtime')
testFixturesImplementation libs.assertk
testFixturesImplementation libs.kotlin.compile.testing.ksp
}
2 changes: 1 addition & 1 deletion compiler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies {
// Gives us access to annotations.
implementation libs.kotlin.inject.runtime

testImplementation project(':compiler-test')
testImplementation(testFixtures(project(':compiler-utils')))
testImplementation project(':runtime-optional')
testImplementation libs.assertk
testImplementation libs.kotlin.compile.testing.core
Expand Down
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ develocity {
rootProject.name = 'kotlin-inject-anvil'

include ':compiler'
include ':compiler-test'
include ':compiler-utils'
include ':runtime'
include ':runtime-optional'
Expand Down

0 comments on commit 439e5b4

Please sign in to comment.