Add workaround for removed Google dependency
diff --git a/build.gradle b/build.gradle
index ce77c0a..24145df 100644
--- a/build.gradle
+++ b/build.gradle
@@ -52,7 +52,15 @@
kotlin_version = '1.2-SNAPSHOT'
}
+ def name = it.name
repositories {
+ /*
+ * google should be first in the repository list because some of the play services
+ * transitive dependencies was removed from jcenter, thus breaking gradle dependency resolution
+ */
+ if (name == "kotlinx-coroutines-play-services") {
+ google()
+ }
jcenter()
maven { url "https://kotlin.bintray.com/kotlin-eap" }
maven { url "https://kotlin.bintray.com/kotlinx" }
diff --git a/integration/kotlinx-coroutines-play-services/build.gradle b/integration/kotlinx-coroutines-play-services/build.gradle
index 44eec3b..51cce3f 100644
--- a/integration/kotlinx-coroutines-play-services/build.gradle
+++ b/integration/kotlinx-coroutines-play-services/build.gradle
@@ -9,10 +9,6 @@
ext.tasks_version = '15.0.1'
-repositories {
- google()
-}
-
def attr = Attribute.of("artifactType", String.class)
configurations {
aar {