https://kotlinlang.org logo
Title
l

lewis

09/04/2017, 9:04 AM
plugins {
    kotlin("jvm")
//    kotlin("allopen")
}

buildscript {
    repositories {
//        gradleScriptKotlin()
        google()
        mavenLocal()
        jcenter()
        mavenCentral()
        maven { setUrl("<https://plugins.gradle.org/m2>") }
        maven { setUrl("<https://repo.spring.io/snapshot>") }
        maven { setUrl("<https://repo.spring.io/milestone>") }
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.0.M2")
//        classpath(kotlin("gradle-plugin", "1.2-M2"))
//        classpath(kotlin("allopen", "1.2-M2"))
    }
}

apply {
//    plugin("org.jetbrains.kotlin.plugin.allopen")
    plugin("idea")
    plugin("org.springframework.boot")
    plugin("io.spring.dependency-management")
}
g

gildor

09/04/2017, 1:06 PM
You shouldn’t use this line, you already applied your plugin in plugins block, remove this lne and keep only one from plugins // plugin(“org.jetbrains.kotlin.plugin.allopen”)