Skip to content

Commit

Permalink
Gradle: Use exclusive repository content to speed up artifact lookup
Browse files Browse the repository at this point in the history
This feature was introduced in Gradle 6.2, see
https://docs.gradle.org/6.2/release-notes.html#declaring-exclusive-repository-content

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Feb 19, 2020
1 parent a09dfcf commit 254fd6d
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 5 deletions.
10 changes: 9 additions & 1 deletion analyzer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ plugins {
}

repositories {
maven("https://repo.gradle.org/gradle/libs-releases-local/")
exclusiveContent {
forRepository {
maven("https://repo.gradle.org/gradle/libs-releases-local/")
}

filter {
includeGroup("org.gradle")
}
}
}

dependencies {
Expand Down
11 changes: 10 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,16 @@ plugins {

repositories {
jcenter()
maven("https://plugins.gradle.org/m2/")

exclusiveContent {
forRepository {
maven("https://plugins.gradle.org/m2/")
}

filter {
includeGroupByRegex(".*gradle\\.plugin.*")
}
}
}

val ideaExtPluginVersion = extra["ideaExtPluginVersion"]
Expand Down
10 changes: 9 additions & 1 deletion cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ repositories {

// Need to repeat the analyzer's custom repository definition here, see
// https://github.com/gradle/gradle/issues/4106.
maven("https://repo.gradle.org/gradle/libs-releases-local/")
exclusiveContent {
forRepository {
maven("https://repo.gradle.org/gradle/libs-releases-local/")
}

filter {
includeGroup("org.gradle")
}
}
}

dependencies {
Expand Down
10 changes: 9 additions & 1 deletion helper-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,15 @@ repositories {

// Need to repeat the analyzer's custom repository definition here, see
// https://github.com/gradle/gradle/issues/4106.
maven("https://repo.gradle.org/gradle/libs-releases-local/")
exclusiveContent {
forRepository {
maven("https://repo.gradle.org/gradle/libs-releases-local/")
}

filter {
includeGroup("org.gradle")
}
}
}

dependencies {
Expand Down
10 changes: 9 additions & 1 deletion reporter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,15 @@ sourceSets.named("main") {
}

repositories {
maven("https://www.robotooling.com/maven/")
exclusiveContent {
forRepository {
maven("https://www.robotooling.com/maven/")
}

filter {
includeGroup("bad.robot")
}
}
}

dependencies {
Expand Down

0 comments on commit 254fd6d

Please sign in to comment.