diff --git a/dd-smoke-tests/maven/build.gradle b/dd-smoke-tests/maven/build.gradle index f52288a7381..e984779c5b3 100644 --- a/dd-smoke-tests/maven/build.gradle +++ b/dd-smoke-tests/maven/build.gradle @@ -1,3 +1,6 @@ +import java.time.Duration +import java.time.temporal.ChronoUnit + plugins { id "com.gradleup.shadow" } @@ -21,6 +24,10 @@ tasks.withType(Test).configureEach { dependsOn "shadowJar" jvmArgs "-Ddatadog.smoketest.maven.jar.path=${tasks.shadowJar.archiveFile.get()}" + // overriding the default timeout set in configure_tests.gradle, as Maven smoke + // tests might run for a longer duration + timeout = Duration.of(20, ChronoUnit.MINUTES) + if (project.hasProperty("mavenRepositoryProxy")) { // propagate proxy URL to tests, to then propagate it to nested Gradle builds environment "MAVEN_REPOSITORY_PROXY", project.property("mavenRepositoryProxy")