Skip to content

Commit

Permalink
fix(gradle): Option dependency resolution
Browse files Browse the repository at this point in the history
Added JitPack, as com.gu.Option hasn't been updated in years, and they
never pushed to JCenter or any other repo, so I used JitPack.

Fix #88.
  • Loading branch information
ParkerK authored and passy committed Jan 28, 2018
1 parent 25b5c12 commit 143bd43
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ buildscript {
classpath 'com.android.tools.build:gradle:2.3.0'
}
}

subprojects {
repositories {
mavenCentral()
maven {
url 'https://jitpack.io/'
}
}
}
7 changes: 1 addition & 6 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@ buildscript {
}
}

repositories {
mavenCentral()
maven { url 'http://guardian.github.com/maven/repo-releases' }
}

dependencies {
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:support-annotations:25.3.1'
compile 'com.gu:option:1.3'
compile 'com.github.guardian:Option:e933c3a31d'
compile 'com.github.frankiesardo:auto-parcel:0.3.1'
compile 'com.google.auto.value:auto-value:1.1'
annotationProcessor 'com.github.frankiesardo:auto-parcel-processor:0.3.1'
Expand Down
5 changes: 0 additions & 5 deletions sample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
apply plugin: 'com.android.application'

repositories {
mavenCentral()
maven { url 'http://guardian.github.com/maven/repo-releases' }
}

dependencies {
compile project(':library')
}
Expand Down

0 comments on commit 143bd43

Please sign in to comment.