/* * Copyright Amazon.com, Inc. or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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 { java } java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 } dependencies { testImplementation("com.google.guava:guava") testImplementation("com.linecorp.armeria:armeria") testImplementation("io.opentelemetry:opentelemetry-api") testImplementation("io.opentelemetry.proto:opentelemetry-proto") testImplementation("org.curioswitch.curiostack:protobuf-jackson") testImplementation("org.slf4j:slf4j-simple") testImplementation("org.testcontainers:junit-jupiter") } project.evaluationDependsOn(":otelagent") val otelAgentJarTask = project(":otelagent").tasks.named("shadowJar") tasks { withType().configureEach { dependsOn(otelAgentJarTask) jvmArgs( "-Dio.awsobservability.instrumentation.smoketests.runner.agentPath=${otelAgentJarTask.get().archiveFile.get() .getAsFile().absolutePath}" ) } register("jibDockerBuildAll") register("integrationTests") named("integrationTests") { dependsOn("test") dependsOn("jibDockerBuildAll") findByName("test")?.mustRunAfter("jibDockerBuildAll") } named("jibDockerBuildAll") { // Make sure that images used during tests are available locally. dependsOn(":sample-apps:spark:jibDockerBuild") dependsOn(":sample-apps:springboot:jibDockerBuild") dependsOn(":smoke-tests:spring-boot:jibDockerBuild") dependsOn(":smoke-tests:fakebackend:jibDockerBuild") } }