Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dd-smoke-tests/gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ test {
events "passed", "skipped", "failed", "standardOut", "standardError"
}

if (project.hasProperty("mavenRepositoryProxy")) {
// propagate proxy URL to tests, to then propagate it to nested Gradle builds
environment "MAVEN_REPOSITORY_PROXY", project.property("mavenRepositoryProxy")
}

// overriding the default timeout of 9 minutes set in configure_tests.gradle,
// as Gradle smoke tests might run for a longer duration
timeout = Duration.of(15, ChronoUnit.MINUTES)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,19 @@ class GradleDaemonSmokeTest extends AbstractGradleTest {
}

private runGradle(String gradleVersion, List<String> arguments, boolean successExpected) {
def buildEnv = ["GRADLE_VERSION": gradleVersion]

def mavenRepositoryProxy = System.getenv("MAVEN_REPOSITORY_PROXY")
if (mavenRepositoryProxy != null) {
buildEnv += ["MAVEN_REPOSITORY_PROXY": System.getenv("MAVEN_REPOSITORY_PROXY")]
}

GradleRunner gradleRunner = GradleRunner.create()
.withTestKitDir(testKitFolder.toFile())
.withProjectDir(projectFolder.toFile())
.withGradleVersion(gradleVersion)
.withArguments(arguments)
.withEnvironment(["GRADLE_VERSION": gradleVersion])
.withEnvironment(buildEnv)
.forwardOutput()

println "${new Date()}: $specificationContext.currentIteration.displayName - Starting Gradle run"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ gradlePlugin {

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ apply plugin: 'jvm-test-suite'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ subprojects {

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ subprojects {

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
allowInsecureProtocol = true
}
}

mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ apply plugin: 'java'

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
url = proxyUrl
}
}

mavenCentral()
}

Expand Down
Loading