this is a stripped down version of what I have. p...
# gradle
m
this is a stripped down version of what I have. pretty straight forward other than the usage of dependencyManagement
Copy code
import io.spring.gradle.dependencymanagement.DependencyManagementExtension
import org.gradle.api.plugins.JavaPlugin
import org.gradle.api.plugins.JavaPluginConvention
import org.gradle.script.lang.kotlin.*
import org.springframework.boot.gradle.plugin.SpringBootPlugin

buildscript {
  extra["kotlinVersion"] = "1.0.4"

  repositories {
    mavenCentral()
  }

  dependencies {
    classpath(kotlinModule("gradle-plugin", extra["kotlinVersion"] as String))
    classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.0.RELEASE")
  }
}

apply {
  plugin("kotlin")
  plugin<JavaPlugin>()
  plugin<SpringBootPlugin>()
}

group = "group"
version = "0.0.1-SNAPSHOT"

configure<JavaPluginConvention> {
  setSourceCompatibility(1.8)
  setTargetCompatibility(1.8)
}

val dependencyManagement = project.property("dependencyManagement") as DependencyManagementExtension

dependencyManagement.apply {
//  imports {
//    mavenBom("org.springframework.cloud:spring-cloud-dependencies:Camden.RELEASE")
//  }
}

dependencies {
  compile(kotlinModule("stdlib", extra["kotlinVersion"] as String))

  compile("org.springframework.cloud:spring-cloud-starter-config")
}