https://kotlinlang.org logo
Title
i

ikt

06/26/2018, 11:42 AM
https://github.com/LouisCAD/solution.bike/blob/master/build.gradle.kts In line 7 and 23, what is the difference between the two repositories lines? In may kotlin-dsl gradle files, I often see the following:
buildscript {
  repositories ...
  dependencies ..
}

repositores ...
dependencies ...
what is the difference between the "global" repositories / dependencies, and the "buildscript" scoped one ? (this is referring to file build.gradle.kts)
c

Czar

06/26/2018, 11:49 AM
This is not kotlin related at all, this is pure gradle. You have to read gradle docs. In short, buildscript deps and repos are for gradle build script itself (e.g. plugins), the ones you call "global" are for your app.