https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

Drew

01/23/2019, 10:29 PM
I’m having a strange issue: Whenever I do a Gradle sync / refresh in a MPP project, all the iOS Native dependencies (i.e. WatchKit) are re-downloaded. It seemed to stop a few days ago, but now it’s doing it again. Anyone else experience this?
d

Drew

01/24/2019, 4:51 PM
@drew thanks. For anyone who sees this, I got around this using the suggestion Sergey made on the YT issue (excluding dependency groups by regex), since I’m on Gradle 5.1.1. Instead of the usual
Copy code
allProjects {
    google()
    jcenter()
    // etc
}
I used the literal URLs to make a
maven
object and exclude the
Kotlin/Native
group:
Copy code
allprojects {
    repositories {
        maven {
            url "<https://dl.google.com/dl/android/maven2/>"

            content {
                excludeGroupByRegex "Kotlin/Native*."
            }
        }

        maven {
            url "<https://jcenter.bintray.com/>"
            content {
                excludeGroupByRegex "Kotlin/Native*."
            }
        }
        // etc
    }
}
d

drew

01/25/2019, 1:27 AM
@Drew Simply appending
repositories.each { it.content { excludeGroupByRegex "Kotlin/Native*." } }
after the repositories list will apply it to all without needing to use the URL for labeled repos.
d

Drew

01/25/2019, 3:42 PM
@drew d’oh. thanks!
2 Views