buildscript {
	ext {
		springBootVersion = '2.1.6.RELEASE'
    dekorateVersion = System.getProperty("dekorateVersion", "0.10.0")
    junitVersion = '5.3.1'
    junitGraldePluginVersion = '1.1.0'
	}
	repositories {
    mavenLocal()
		mavenCentral()
	}
	dependencies {
		classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
    classpath("org.junit.platform:junit-platform-gradle-plugin:${junitGraldePluginVersion}")
	}
}

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.junit.platform.gradle.plugin'

group = 'io.dekorate.examples'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8

repositories {
  mavenCentral()
  mavenLocal()
}

junitPlatform {
    enableStandardTestTask = true
}

dependencies {
  implementation('org.springframework.boot:spring-boot-starter-web')
  implementation('org.springframework.boot:spring-boot-starter-actuator')
  compile group: 'org.springframework.boot', name: 'spring-boot-configuration-processor'


  implementation("io.dekorate:dekorate-spring-boot:${dekorateVersion}")
  implementation("io.dekorate:kubernetes-annotations:${dekorateVersion}")
  annotationProcessor("io.dekorate:kubernetes-annotations:${dekorateVersion}")
  annotationProcessor("io.dekorate:dekorate-spring-boot:${dekorateVersion}")
  annotationProcessor('org.springframework.boot:spring-boot-starter-actuator') //We need `dekorate` to see the actuator classes

	testCompile("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
  testRuntime("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
  testImplementation("io.dekorate:kubernetes-junit:${dekorateVersion}")
}
