Dependency inside build script?

why is there a dependency in the buildscript _____? (buildscript method?)

is that related to using jetbrains for an IDE?

apply plugin: 'kotlin'

buildscript {
  ext.kotlin_version = '0.10.195'
  repositories {
  dependencies {
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
dependencies {
    compile 'org.slf4j:slf4j-api:1.7.7'
    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    testCompile 'junit:junit:4.12'

The buildscript dependency is for the apply plugin: 'kotlin' line. Kotlin is developed by JetBrains and they provide the Gradle plugin to add support for Kotlin projects similar to what is built-in for Java / Groovy. This is different than the Gradle Kotlin DSL for writing your buildscripts in Kotlin.

1 Like