Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ apply plugin: 'java'
// the 'com.android.base' plugin id, so applying an id-only stand-in exercises it.
apply plugin: 'com.android.base'

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")

repositories {
mavenLocal()

def proxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
if (proxyUrl) {
println "Using proxy repository: $proxyUrl"
maven {
Expand Down Expand Up @@ -106,6 +107,10 @@ dependencies {

test {
useJUnit()
if (proxyUrl) {
// Robolectric resolves the Android SDK at test runtime, outside Gradle's dependency resolver.
systemProperty "robolectric.dependency.repo.url", proxyUrl
}
// Coverage is validated by the other Gradle smoke scenarios; disable it here so this scenario
// stays focused on the emulated-SDK (test.android.*) tags.
environment "DD_CIVISIBILITY_CODE_COVERAGE_ENABLED", "false"
Expand Down
Loading