Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
99 lines (83 sloc) 2.53 KB
buildscript {
ext {
kotlinVersion = '1.2.41'
springBootVersion = '2.0.5.RELEASE'
}
repositories {
mavenCentral()
jcenter()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
}
}
plugins {
id 'com.google.cloud.tools.jib' version '0.9.11'
}
ext {
springCloudVersion = 'Finchley.SR1'
}
apply plugin: 'kotlin'
apply plugin: 'kotlin-spring'
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'org.bk.samples'
version = '0.0.2'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
}
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-webflux')
compile("com.fasterxml.jackson.module:jackson-module-kotlin")
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlinVersion}")
compile("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}")
runtime("io.micrometer:micrometer-registry-prometheus")
compile("org.springframework.cloud:spring-cloud-starter-sleuth")
compile("org.springframework.cloud:spring-cloud-starter-zipkin")
testCompile('org.springframework.boot:spring-boot-starter-test') {
exclude group: "junit", module: "junit"
}
testCompile('io.projectreactor:reactor-test')
testCompile("org.junit.jupiter:junit-jupiter-api")
testRuntime("org.junit.jupiter:junit-jupiter-engine")
}
test {
useJUnitPlatform()
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
//for minikube environment
//docker {
// url = 'https://192.168.99.100:2376'
// certPath = new File(System.properties['user.home'], '/.minikube/certs')
//}
jib {
to {
image = "bijukunjummen/sample-micrometer-app:${project.version}"
}
}
You can’t perform that action at this time.