From 143bd4323ce21709528e23cde6cdb314af37f9db Mon Sep 17 00:00:00 2001 From: Parker Kuivila Date: Fri, 26 Jan 2018 12:59:18 -0500 Subject: [PATCH] fix(gradle): Option dependency resolution 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. --- build.gradle | 9 +++++++++ library/build.gradle | 7 +------ sample/build.gradle | 5 ----- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index d9a2526..449e67a 100644 --- a/build.gradle +++ b/build.gradle @@ -11,3 +11,12 @@ buildscript { classpath 'com.android.tools.build:gradle:2.3.0' } } + +subprojects { + repositories { + mavenCentral() + maven { + url 'https://jitpack.io/' + } + } +} diff --git a/library/build.gradle b/library/build.gradle index f842ed8..9fb7c65 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -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' diff --git a/sample/build.gradle b/sample/build.gradle index ce5889e..184331c 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -1,10 +1,5 @@ apply plugin: 'com.android.application' -repositories { - mavenCentral() - maven { url 'http://guardian.github.com/maven/repo-releases' } -} - dependencies { compile project(':library') }