Skip to content

Commit

Permalink
Merge pull request #26 from nikolaykasyanov/cleanup
Browse files Browse the repository at this point in the history
Dependency cleanup
  • Loading branch information
nikolaykasyanov authored Mar 4, 2021
2 parents 944260d + c0c7271 commit 1919c3e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void setupMultiplatformLibrary(Project project, Boolean shouldPublish = true) {
sourceSets {
commonTest {
dependencies {
implementation Deps.kotlin.test.common
implementation Deps.kotlin.test
implementation Deps.kotlin.test.annotationsCommon
}
}
Expand Down
17 changes: 10 additions & 7 deletions buildSrc/buildSrc/src/main/kotlin/Deps.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,19 @@ object Deps {
}

object Kotlin {
val test = Test
val test = Test()
const val plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"

object Test {
const val common = "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
const val junit = "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion"
const val js = "org.jetbrains.kotlin:kotlin-test-js:$kotlinVersion"
const val test = "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
const val annotationsCommon =
const val reflectJvm = "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"

class Test(private val name: String = "org.jetbrains.kotlin:kotlin-test:$kotlinVersion") :
CharSequence by name {
val annotationsCommon =
"org.jetbrains.kotlin:kotlin-test-annotations-common:$kotlinVersion"
val js = "org.jetbrains.kotlin:kotlin-test-js:$kotlinVersion"
val junit = "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion"

override fun toString() = name
}
}
}
12 changes: 1 addition & 11 deletions mockingbird/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,7 @@ kotlin {
dependencies {
implementation Deps.kotlinx.atomicfu.common
implementation Deps.touchlab.stately.isolate.common
implementation kotlin('test')
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}

commonTest {
dependencies {
implementation kotlin('test')
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
implementation Deps.kotlin.test
}
}

Expand Down

0 comments on commit 1919c3e

Please sign in to comment.