/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ plugins { id "com.github.johnrengelman.shadow" } ext { minJavaVersionForTests = JavaVersion.VERSION_1_8 noShadowPublish = true } group = 'io.opentelemetry.instrumentation' apply from: "$rootDir/gradle/java.gradle" apply from: "$rootDir/gradle/publish.gradle" apply plugin: 'org.unbroken-dome.test-sets' testSets { latestDepTest { dirName = 'test' } } dependencies { api group: 'io.projectreactor', name: 'reactor-core', version: '3.1.0.RELEASE' implementation deps.opentelemetryApi implementation deps.slf4j testImplementation project(':testing-common') latestDepTestImplementation group: 'io.projectreactor', name: 'reactor-core', version: '3.+' // Looks like later versions on reactor need this dependency for some reason even though it is marked as optional. latestDepTestImplementation group: 'io.micrometer', name: 'micrometer-core', version: '1.+' } shadowJar { archiveClassifier = 'agent' configurations = [] relocate 'io.opentelemetry.instrumentation.reactor', 'io.opentelemetry.auto.instrumentation.reactor.shaded' }