diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2019-03-02 23:38:57 +0530 |
---|---|---|
committer | Mohamed Zenadi <zeapo@users.noreply.github.com> | 2019-03-02 19:08:57 +0100 |
commit | ffe489c2939d7e43f48552496464a71c5c4335fb (patch) | |
tree | 824da283648b460aa8fa541e008cab2da800f758 | |
parent | 3c06063153d0b7f71998128dc6fb4e5967e33624 (diff) |
Dependency updates (#489)
* Configure dependencyUpdates task
Configured to emit JSON reports in build directory and to
only use stable releases.
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
* Update dependencies
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
-rw-r--r-- | app/build.gradle.kts | 22 | ||||
-rw-r--r-- | build.gradle.kts | 29 |
2 files changed, 37 insertions, 14 deletions
diff --git a/app/build.gradle.kts b/app/build.gradle.kts index ae45304b..fc2a2a17 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -68,28 +68,28 @@ android { } dependencies { - implementation("androidx.appcompat:appcompat:1.0.0") + implementation("androidx.appcompat:appcompat:1.0.2") implementation("androidx.recyclerview:recyclerview:1.0.0") implementation("androidx.cardview:cardview:1.0.0") implementation("com.google.android.material:material:1.0.0") - implementation("androidx.annotation:annotation:1.0.0") - implementation("org.sufficientlysecure:openpgp-api:11.0") + implementation("androidx.annotation:annotation:1.0.2") + implementation("org.sufficientlysecure:openpgp-api:12.0") implementation("com.nononsenseapps:filepicker:2.4.2") implementation("org.eclipse.jgit:org.eclipse.jgit:3.7.1.201504261725-r") { exclude(group = "org.apache.httpcomponents", module = "httpclient") } - implementation("com.jcraft:jsch:0.1.54") + implementation("com.jcraft:jsch:0.1.55") implementation("commons-io:commons-io:2.5") - implementation("commons-codec:commons-codec:1.11") - implementation("com.jayway.android.robotium:robotium-solo:5.3.1") + implementation("commons-codec:commons-codec:1.12") + implementation("com.jayway.android.robotium:robotium-solo:5.6.3") implementation(kotlin("stdlib-jdk7", KotlinCompilerVersion.VERSION)) implementation("androidx.constraintlayout:constraintlayout:1.1.3") // Testing-only dependencies androidTestImplementation("junit:junit:4.12") - androidTestImplementation("org.mockito:mockito-core:2.18.0") - androidTestImplementation("androidx.test:runner:1.1.0-alpha4") - androidTestImplementation("androidx.test:rules:1.1.0-alpha4") - androidTestImplementation("androidx.test.espresso:espresso-core:3.1.0-alpha4") - androidTestImplementation("androidx.test.espresso:espresso-intents:3.1.0-alpha4") + androidTestImplementation("org.mockito:mockito-core:2.24.5") + androidTestImplementation("androidx.test:runner:1.1.1") + androidTestImplementation("androidx.test:rules:1.1.1") + androidTestImplementation("androidx.test.espresso:espresso-core:3.1.1") + androidTestImplementation("androidx.test.espresso:espresso-intents:3.1.1") } diff --git a/build.gradle.kts b/build.gradle.kts index 6a8c4dd5..dc9ef005 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,4 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. +import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask buildscript { repositories { @@ -7,11 +7,15 @@ buildscript { mavenCentral() } dependencies { - classpath("com.android.tools.build:gradle:3.2.1") - classpath(kotlin("gradle-plugin", "1.2.71")) + classpath("com.android.tools.build:gradle:3.3.1") + classpath(kotlin("gradle-plugin", "1.3.21")) } } +plugins { + id("com.github.ben-manes.versions") version "0.21.0" +} + allprojects { repositories { google() @@ -19,3 +23,22 @@ allprojects { mavenCentral() } } + +tasks.named<DependencyUpdatesTask>("dependencyUpdates") { + resolutionStrategy { + componentSelection { + all { + val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview") + .map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-]*") } + .any { it.matches(candidate.version) } + if (rejected) { + reject("Release candidate") + } + } + } + } + checkForGradleUpdate = true + outputFormatter = "json" + outputDir = "build/dependencyUpdates" + reportfileName = "report" +} |