hellman
11/09/2019, 4:05 PMplugins {
id("org.jetbrains.kotlin.js") version "1.3.60-eap-76"
}
repositories {
mavenCentral()
mavenLocal()
maven(url = "<https://dl.bintray.com/kotlin/kotlin-eap>")
}
oskarh
11/09/2019, 9:13 PMhellman
11/10/2019, 11:14 AMoskarh
11/10/2019, 12:43 PMMike
11/10/2019, 1:56 PMpluginManagement {
repositories {
maven(url = "<https://dl.bintray.com/kotlin/kotlin-eap>")
}
}
Although that's acceptable for Groovy so may have to tweak a bit for Kotlin DSL.buildscript
block, but also more clutter in your main build file.hellman
11/10/2019, 2:16 PMbuildscript
anymore?Mike
11/10/2019, 2:55 PMplugins
block. The plugins
block is the recommended approach now. It can speed up build configuration phase BUT does have some syntax restrictions as a result. Won't go into details here.
If you use buildscript, then everything is in the build.gradle file.
If you use plugins
, then plugin configuration goes into the settings file.Limitations of the plugins DSL
section, you'll see this
If the restrictions of the plugins {} block are prohibitive, the recommended approach is to apply plugins using the buildscript {} block