Skip to content

Commit

Permalink
Define repositories once in root build file.
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot-team committed Nov 14, 2017
1 parent 5428a2b commit 66fed14
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 25 deletions.
4 changes: 0 additions & 4 deletions EventBus/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ if(isSnapshot) {
sonatypeRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}

repositories {
mavenCentral()
}

// Still unsupported, see http://issues.gradle.org/browse/GRADLE-784
// Like this, it won't appear at all in the POM
configurations {
Expand Down
4 changes: 0 additions & 4 deletions EventBusAnnotationProcessor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ if (isSnapshot) {
sonatypeRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}

repositories {
mavenCentral()
}

// Still unsupported, see http://issues.gradle.org/browse/GRADLE-784
// Like this, it won't appear at all in the POM
configurations {
Expand Down
4 changes: 0 additions & 4 deletions EventBusPerformance/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ buildscript {

apply plugin: 'com.android.application'

repositories {
jcenter()
}

dependencies {
compile project(':eventbus')
annotationProcessor project(':eventbus-annotation-processor')
Expand Down
5 changes: 0 additions & 5 deletions EventBusTest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ buildscript {

apply plugin: 'com.android.application'

repositories {
jcenter()
google()
}

dependencies {
androidTestCompile project(':eventbus')
androidTestCompile project(':EventBusTestJava')
Expand Down
4 changes: 0 additions & 4 deletions EventBusTestJava/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ apply plugin: 'net.ltgt.apt-idea'

sourceCompatibility = 1.7

repositories {
jcenter()
}

// we have tests in the main source set so they can be shared with the Android test module
// to make Gradle pick them up, add the dir to the test source set
sourceSets {
Expand Down
4 changes: 0 additions & 4 deletions EventBusTestSubscriberInJar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ group = 'de.greenrobot'
version = '3.0.0'
sourceCompatibility = 1.7

repositories {
jcenter()
}

configurations {
provided
}
Expand Down
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ buildscript {
}
}

allprojects {
repositories {
jcenter()
mavenCentral()
google()
}
}

if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
Expand Down

0 comments on commit 66fed14

Please sign in to comment.