28 lines
691 B
Groovy
28 lines
691 B
Groovy
plugins {
|
|
id "com.github.johnrengelman.shadow"
|
|
}
|
|
apply from: "$rootDir/gradle/java.gradle"
|
|
description = 'SpringBoot Smoke Tests.'
|
|
|
|
// The standard spring-boot plugin doesn't play nice with our project
|
|
// so we'll build a fat jar instead
|
|
jar {
|
|
manifest {
|
|
attributes(
|
|
'Main-Class': 'io.opentelemetry.smoketest.springboot.SpringbootApplication'
|
|
)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '1.5.18.RELEASE'
|
|
|
|
testCompile project(':smoke-tests')
|
|
}
|
|
|
|
tasks.withType(Test).configureEach {
|
|
dependsOn shadowJar
|
|
|
|
jvmArgs "-Dio.opentelemetry.smoketest.springboot.shadowJar.path=${tasks.shadowJar.archivePath}"
|
|
}
|