Skip to content

Commit

Permalink
update kotlin plugin applications (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
RBusarow authored Oct 18, 2020
1 parent c19d528 commit 61a9f5c
Show file tree
Hide file tree
Showing 21 changed files with 23 additions and 54 deletions.
5 changes: 2 additions & 3 deletions dispatch-android-espresso/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.androidLibrary)
id(Plugins.kotlinAndroid)
kotlin("android")
id(Plugins.mavenPublish)
id(Plugins.dokka)
}
Expand Down Expand Up @@ -44,10 +44,9 @@ dependencies {
api(Libs.AndroidX.Test.Espresso.idlingResource)
api(Libs.JUnit.jUnit4)
api(Libs.Kotlinx.Coroutines.core)
api(Libs.Kotlinx.Coroutines.coreJvm)

api(project(":dispatch-core"))

implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.android)

testImplementation(Libs.Kotest.assertions)
Expand Down
4 changes: 1 addition & 3 deletions dispatch-android-espresso/samples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.androidLibrary)
id(Plugins.kotlinAndroid)
kotlin("android")
}

android {
Expand All @@ -38,8 +38,6 @@ android {
}

dependencies {

implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.coreJvm)

implementation(project(":dispatch-core"))
Expand Down
4 changes: 1 addition & 3 deletions dispatch-android-lifecycle-extensions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.androidLibrary)
id(Plugins.kotlinAndroid)
kotlin("android")
id(Plugins.mavenPublish)
id(Plugins.dokka)
}
Expand Down Expand Up @@ -50,8 +50,6 @@ dependencies {
api(Libs.Kotlinx.Coroutines.coreJvm)

api(project(":dispatch-android-lifecycle"))

implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.android)

implementation(project(":dispatch-core"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.androidLibrary)
id(Plugins.kotlinAndroid)
kotlin("android")
}

android {
Expand All @@ -42,7 +42,6 @@ dependencies {
implementation(Libs.AndroidX.Fragment.core)
implementation(Libs.AndroidX.Lifecycle.common)
implementation(Libs.JUnit.jUnit4)
implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.core)

implementation(project(":dispatch-android-espresso"))
Expand Down
3 changes: 1 addition & 2 deletions dispatch-android-lifecycle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.androidLibrary)
id(Plugins.kotlinAndroid)
kotlin("android")
id(Plugins.mavenPublish)
id(Plugins.dokka)
}
Expand Down Expand Up @@ -54,7 +54,6 @@ dependencies {
implementation(Libs.AndroidX.Lifecycle.liveData)
implementation(Libs.AndroidX.Lifecycle.liveDataKtx)
implementation(Libs.AndroidX.Lifecycle.runtime)
implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.android)

testImplementation(Libs.AndroidX.Lifecycle.runtime)
Expand Down
3 changes: 1 addition & 2 deletions dispatch-android-lifecycle/samples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.androidLibrary)
id(Plugins.kotlinAndroid)
kotlin("android")
}

android {
Expand Down Expand Up @@ -46,7 +46,6 @@ dependencies {
implementation(Libs.AndroidX.Lifecycle.viewModel)
implementation(Libs.JUnit.jUnit4)
implementation(Libs.JUnit.jUnit5Api)
implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.core)

implementation(project(":dispatch-android-lifecycle"))
Expand Down
3 changes: 1 addition & 2 deletions dispatch-android-viewmodel/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.androidLibrary)
id(Plugins.kotlinAndroid)
kotlin("android")
id(Plugins.mavenPublish)
id(Plugins.dokka)
}
Expand Down Expand Up @@ -47,7 +47,6 @@ dependencies {
api(Libs.Kotlinx.Coroutines.coreJvm)

implementation(Libs.AndroidX.Lifecycle.viewModelKtx)
implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.android)

testImplementation(Libs.AndroidX.Test.Espresso.core)
Expand Down
4 changes: 1 addition & 3 deletions dispatch-android-viewmodel/samples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.androidLibrary)
id(Plugins.kotlinAndroid)
kotlin("android")
}

android {
Expand All @@ -38,8 +38,6 @@ android {
}

dependencies {

implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.core)
implementation(Libs.Kotlinx.Coroutines.test)

Expand Down
4 changes: 1 addition & 3 deletions dispatch-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

plugins {
id(Plugins.kotlin)
kotlin("jvm")
id(Plugins.mavenPublish)
id(Plugins.dokka)
id(Plugins.atomicFu)
Expand All @@ -25,8 +25,6 @@ dependencies {
api(Libs.Kotlinx.Coroutines.core)
api(Libs.Kotlinx.Coroutines.coreJvm)

implementation(Libs.Kotlin.stdlib)

testImplementation(Libs.JUnit.jUnit5)
testImplementation(Libs.Kotest.assertions)
testImplementation(Libs.Kotest.properties)
Expand Down
4 changes: 1 addition & 3 deletions dispatch-core/samples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@
import kotlinx.atomicfu.plugin.gradle.*

plugins {
id(Plugins.kotlin)
kotlin("jvm")
}

sourceSets["test"].java.srcDir("test")

dependencies {

implementation(Libs.Kotlin.stdlib)

testImplementation(Libs.JUnit.jUnit5)
testImplementation(Libs.Kotest.assertions)
testImplementation(Libs.Kotest.properties)
Expand Down
4 changes: 1 addition & 3 deletions dispatch-detekt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

plugins {
id(Plugins.kotlin)
kotlin("jvm")
id(Plugins.mavenPublish)
id(Plugins.dokka)
}
Expand All @@ -24,8 +24,6 @@ dependencies {
api(Libs.Detekt.api)
api(Libs.Kotlin.compiler)

implementation(Libs.Kotlin.stdlib)

// detekt-test leaks transitive dependencies upon AssertJ and Spek
// https://github.com/detekt/detekt/issues/3082
testImplementation("org.assertj:assertj-core:3.17.2")
Expand Down
4 changes: 1 addition & 3 deletions dispatch-detekt/samples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
import kotlinx.atomicfu.plugin.gradle.*

plugins {
id(Plugins.kotlin)
kotlin("jvm")
}

sourceSets["test"].java.srcDir("test")

dependencies {

implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.core)
implementation(Libs.Kotlinx.Coroutines.coreJvm)

Expand Down
3 changes: 1 addition & 2 deletions dispatch-internal-test-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.androidLibrary)
id(Plugins.kotlinAndroid)
kotlin("android")
}

android {
Expand Down Expand Up @@ -50,6 +50,5 @@ dependencies {

implementation(Libs.AndroidX.Lifecycle.runtimeKtx)
implementation(Libs.Kotlin.reflect)
implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.android)
}
3 changes: 1 addition & 2 deletions dispatch-internal-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.atomicFu)
id(Plugins.kotlin)
kotlin("jvm")
}

dependencies {
Expand All @@ -32,7 +32,6 @@ dependencies {
implementation(Libs.Kotest.commonJvm)
implementation(Libs.Kotest.runner)
implementation(Libs.Kotlin.reflect)
implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlin.test)
implementation(Libs.Kotlin.testCommon)
implementation(Libs.Kotlinx.Coroutines.test)
Expand Down
3 changes: 1 addition & 2 deletions dispatch-sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.androidApplication)
id(Plugins.kotlinAndroid)
kotlin("android")
id(Plugins.kotlinAndroidExtensions)
}

Expand Down Expand Up @@ -56,7 +56,6 @@ dependencies {
implementation(Libs.AndroidX.Lifecycle.common)
implementation(Libs.AndroidX.Lifecycle.extensions)
implementation(Libs.JakeWharton.timber)
implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.android)
implementation(Libs.Kotlinx.Coroutines.core)

Expand Down
4 changes: 1 addition & 3 deletions dispatch-test-junit4/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.atomicFu)
id(Plugins.kotlin)
kotlin("jvm")
id(Plugins.mavenPublish)
id(Plugins.dokka)
}
Expand All @@ -27,8 +27,6 @@ dependencies {

api(project(":dispatch-core"))
api(project(":dispatch-test"))

implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.core)
implementation(Libs.Kotlinx.Coroutines.coreJvm)

Expand Down
4 changes: 1 addition & 3 deletions dispatch-test-junit4/samples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@
*/

plugins {
id(Plugins.kotlin)
kotlin("jvm")
}

sourceSets["test"].java.srcDir("test")

dependencies {

implementation(Libs.Kotlin.stdlib)

testImplementation(Libs.JUnit.jUnit4)
testImplementation(Libs.Kotest.assertions)
testImplementation(Libs.Kotest.properties)
Expand Down
3 changes: 1 addition & 2 deletions dispatch-test-junit5/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

plugins {
id(Plugins.atomicFu)
id(Plugins.kotlin)
kotlin("jvm")
id(Plugins.mavenPublish)
id(Plugins.dokka)
}
Expand All @@ -28,7 +28,6 @@ dependencies {

implementation(Libs.JUnit.jUnit5)
implementation(Libs.Kotlin.reflect)
implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.core)
implementation(Libs.Kotlinx.Coroutines.coreJvm)
implementation(Libs.Kotlinx.Coroutines.test)
Expand Down
4 changes: 1 addition & 3 deletions dispatch-test-junit5/samples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
import kotlinx.atomicfu.plugin.gradle.*

plugins {
id(Plugins.kotlin)
kotlin("jvm")
}

sourceSets["test"].java.srcDir("test")

dependencies {

implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.test)

testImplementation(Libs.JUnit.jUnit5)
Expand Down
4 changes: 2 additions & 2 deletions dispatch-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@

plugins {
id(Plugins.atomicFu)
id(Plugins.kotlin)
kotlin("jvm")
id(Plugins.mavenPublish)
id(Plugins.dokka)
}

dependencies {

api(Libs.Kotlinx.Coroutines.core)
api(Libs.Kotlinx.Coroutines.coreJvm)
api(Libs.Kotlinx.Coroutines.test)

api(project(":dispatch-core"))

implementation(Libs.JUnit.jUnit5)
implementation(Libs.JUnit.jUnit5Api)
implementation(Libs.JUnit.jUnit5Vintage)
implementation(Libs.Kotlin.stdlib)

testImplementation(Libs.Kotest.assertions)
testImplementation(Libs.Kotest.properties)
Expand Down
4 changes: 1 addition & 3 deletions dispatch-test/samples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
import kotlinx.atomicfu.plugin.gradle.*

plugins {
id(Plugins.kotlin)
kotlin("jvm")
}

sourceSets["test"].java.srcDir("test")

dependencies {

implementation(Libs.Kotlin.stdlib)
implementation(Libs.Kotlinx.Coroutines.core)

implementation(project(":dispatch-core"))
Expand Down

0 comments on commit 61a9f5c

Please sign in to comment.