From 19d33992883acac0011ed25a224d043c940f21e8 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 26 Aug 2014 01:51:07 +0200 Subject: [PATCH] Use hardcoded version names for gradle dependencies. Also added notes in Readme on how to update dependencies and submodules. --- README.md | 2 ++ build.gradle | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c09e1c8a..42c68f61 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ The build process follows three phases: - The Syncthing native libraries are compiled for the different architectures using `gradlew buildNative`. - The final APK is built using the `gradlew assembleDebug` task. +To check for updated gradle dependencies, run `gradle dependencyUpdates`. Additionally, the git modules in `ext/syncthing/src/github.com/syncthing/syncthing` and `libraries/android-support-v4-preferencefragment` may need to be updated. + ## Getting Syncthing without building natively diff --git a/build.gradle b/build.gradle index bb0f4638..295ea4ad 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,14 @@ buildscript { repositories { mavenCentral() + jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:0.12.+' - classpath 'com.alexvasilkov:android_sign:0.2+' + classpath 'com.android.tools.build:gradle:0.12.2' + classpath 'com.alexvasilkov:android_sign:0.2' + classpath 'com.github.ben-manes:gradle-versions-plugin:0.5-beta-6' + classpath 'org.codehaus.groovy:groovy-backports-compat23:2.3.5' } } @@ -13,13 +16,14 @@ import java.util.regex.Pattern apply plugin: 'com.android.application' apply plugin: 'android_sign' +apply plugin: 'com.github.ben-manes.versions' repositories { mavenCentral() } dependencies { - compile 'com.android.support:appcompat-v7:19.1.+' + compile 'com.android.support:appcompat-v7:19.1.0' androidTestCompile 'com.squareup.okhttp:mockwebserver:2.0.0' compile project(':android-support-v4-preferencefragment') }