2022-10-28 13:41:39 +00:00
|
|
|
import static org.gradle.api.JavaVersion.VERSION_1_8
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
// Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
|
|
|
|
id 'org.jetbrains.kotlin.jvm' // version '1.6.21'
|
|
|
|
// Apply the java-library plugin for API and implementation separation.
|
|
|
|
id 'java-library'
|
2022-11-24 13:34:08 +00:00
|
|
|
//id 'com.github.johnrengelman.shadow' // version '7.1.2'
|
2022-10-28 13:41:39 +00:00
|
|
|
id 'net.corda.plugins.publish-utils'
|
|
|
|
}
|
|
|
|
|
2022-11-24 13:34:08 +00:00
|
|
|
description 'OpenTelemetry SDK Bundle'
|
2022-10-28 13:41:39 +00:00
|
|
|
|
|
|
|
// This driver is required by core, so must always be 1.8. See core build.gradle.
|
|
|
|
targetCompatibility = VERSION_1_8
|
|
|
|
|
|
|
|
dependencies {
|
2022-11-24 13:34:08 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2022-10-28 13:41:39 +00:00
|
|
|
implementation platform("io.opentelemetry:opentelemetry-bom:$open_telemetry_version")
|
|
|
|
implementation "io.opentelemetry:opentelemetry-sdk"
|
2022-11-24 13:34:08 +00:00
|
|
|
implementation "io.opentelemetry:opentelemetry-exporter-otlp"
|
2022-10-28 13:41:39 +00:00
|
|
|
implementation "io.opentelemetry:opentelemetry-semconv:$open_telemetry_sem_conv_version"
|
2022-11-24 13:34:08 +00:00
|
|
|
implementation ("com.squareup.okhttp3:okhttp:$okhttp_version") {
|
|
|
|
force = true
|
|
|
|
}
|
2022-10-28 13:41:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
2022-11-24 13:34:08 +00:00
|
|
|
name 'corda-opentelemetry'
|
2022-10-28 13:41:39 +00:00
|
|
|
}
|
|
|
|
|