72 lines
2.1 KiB
Plaintext
72 lines
2.1 KiB
Plaintext
plugins {
|
|
id("otel.java-conventions")
|
|
alias(springBoot32.plugins.versions)
|
|
id("org.graalvm.buildtools.native")
|
|
}
|
|
|
|
description = "smoke-tests-otel-starter-spring-boot-3.2"
|
|
|
|
otelJava {
|
|
minJavaVersionSupported.set(JavaVersion.VERSION_17)
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
|
|
runtimeOnly("com.h2database:h2")
|
|
implementation("org.apache.commons:commons-dbcp2")
|
|
implementation("org.springframework.kafka:spring-kafka")
|
|
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
|
|
implementation("org.springframework.boot:spring-boot-starter-aop")
|
|
implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
|
|
|
|
implementation(project(":smoke-tests-otel-starter:spring-boot-common"))
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
|
}
|
|
|
|
springBoot {
|
|
mainClass = "io.opentelemetry.spring.smoketest.OtelSpringStarterSmokeTestApplication"
|
|
}
|
|
|
|
tasks {
|
|
compileAotJava {
|
|
with(options) {
|
|
compilerArgs.add("-Xlint:-deprecation,-unchecked,none")
|
|
// To disable warnings/failure coming from the Java compiler during the Spring AOT processing
|
|
// -deprecation,-unchecked and none are required (none is not enough)
|
|
}
|
|
}
|
|
compileAotTestJava {
|
|
with(options) {
|
|
compilerArgs.add("-Xlint:-deprecation,-unchecked,none")
|
|
// To disable warnings/failure coming from the Java compiler during the Spring AOT processing
|
|
// -deprecation,-unchecked and none are required (none is not enough)
|
|
}
|
|
}
|
|
checkstyleAot {
|
|
isEnabled = false
|
|
}
|
|
checkstyleAotTest {
|
|
isEnabled = false
|
|
}
|
|
}
|
|
|
|
// To be able to execute the tests as GraalVM native executables
|
|
configurations.configureEach {
|
|
exclude("org.apache.groovy", "groovy")
|
|
exclude("org.apache.groovy", "groovy-json")
|
|
exclude("org.spockframework", "spock-core")
|
|
}
|
|
|
|
graalvmNative {
|
|
// See https://github.com/graalvm/native-build-tools/issues/572
|
|
metadataRepository {
|
|
enabled.set(false)
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
setForkEvery(1)
|
|
}
|
|
}
|