Skip to content

Commit

Permalink
Centralize mavenCentral() to settings.gradle
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Lacasse <daniel@lacasse.io>
  • Loading branch information
lacasseio committed Jan 21, 2022
1 parent e9ba94a commit ba4e4f5
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 27 deletions.
6 changes: 6 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ include('gradle-runner-kit-wrapper-impl')
project(':gradle-runner-kit-wrapper-impl').projectDir = file('subprojects/gradle-runner-kit-wrapper-impl')
project(':gradle-runner-kit-wrapper-impl').buildFileName = 'build.gradle'

gradle.allprojects {
repositories {
mavenCentral()
}
}

plugins.withId('com.gradle.enterprise') {
gradleEnterprise {
buildScan {
Expand Down
4 changes: 0 additions & 4 deletions subprojects/gradle-fixtures-file-system/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ java {
withJavadocJar()
}

repositories {
mavenCentral()
}

dependencies {
implementation 'com.google.guava:guava:28.2-jre'
implementation 'commons-io:commons-io:2.6'
Expand Down
4 changes: 0 additions & 4 deletions subprojects/gradle-fixtures-source-elements/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ java {
withJavadocJar()
}

repositories {
mavenCentral()
}

dependencies {
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ java {
withJavadocJar()
}

repositories {
mavenCentral()
}

dependencies {
api 'org.eclipse.jgit:org.eclipse.jgit:5.8.0.202006091008-r'

Expand Down
1 change: 0 additions & 1 deletion subprojects/gradle-fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ java {
}

repositories {
mavenCentral()
gradlePluginPortal()
gradlePluginDevelopment()
maven { url = 'https://repo.nokee.dev/snapshot' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ plugins {
description = 'Gradle plugin development plugins test fixtures.'
version = '1.6.4'

repositories {
mavenCentral()
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
Expand Down
4 changes: 0 additions & 4 deletions subprojects/gradle-plugin-development/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ pluginBundle {
}
}

repositories {
mavenCentral()
}

test {
dependencies {
implementation spockFramework()
Expand Down
1 change: 0 additions & 1 deletion subprojects/gradle-runner-kit-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ java {
}

repositories {
mavenCentral()
maven { url = 'https://repo.nokee.dev/snapshot' }
}

Expand Down
1 change: 0 additions & 1 deletion subprojects/gradle-runner-kit-impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ java {
}

repositories {
mavenCentral()
gradlePluginDevelopment()
maven { url = 'https://repo.nokee.dev/snapshot' }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ java {
}

repositories {
mavenCentral()
gradlePluginDevelopment()
maven { url = 'https://repo.nokee.dev/snapshot' }
}
Expand Down
1 change: 0 additions & 1 deletion subprojects/gradle-runner-kit-test-kit-impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ java {
}

repositories {
mavenCentral()
gradlePluginDevelopment()
}

Expand Down
1 change: 0 additions & 1 deletion subprojects/gradle-runner-kit-wrapper-impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ java {
}

repositories {
mavenCentral()
maven { url = 'https://repo.nokee.dev/snapshot' }
}

Expand Down
1 change: 0 additions & 1 deletion subprojects/gradle-runner-kit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ java {
}

repositories {
mavenCentral()
gradlePluginDevelopment()
maven { url = 'https://repo.nokee.dev/snapshot' }
}
Expand Down

0 comments on commit ba4e4f5

Please sign in to comment.