From aa6fa708cf3e162c494de0d40ab17f7e12b19496 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Tue, 4 Jul 2023 16:28:18 +0200 Subject: [PATCH] Deps: Extract junit version to root build gradle --- build.gradle | 2 ++ well-sample/build.gradle | 2 +- wellsql/build.gradle | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index a7aaba1..d35a667 100644 --- a/build.gradle +++ b/build.gradle @@ -32,5 +32,7 @@ ext { googleAutoServiceVersion = '1.0-rc6' squareupJavaPoetVersion = '1.11.1' + junitVersion = '4.12' + wellSqlAnnotationsProjectDependency = project.hasProperty("wellSqlAnnotationsVersion") ? "org.wordpress.wellsql:wellsql-annotations:${project.getProperty("wellSqlAnnotationsVersion")}" : project(":well-annotations") } diff --git a/well-sample/build.gradle b/well-sample/build.gradle index 19d45f1..c677bdf 100644 --- a/well-sample/build.gradle +++ b/well-sample/build.gradle @@ -32,6 +32,6 @@ dependencies { annotationProcessor project(':well-processor') implementation "androidx.appcompat:appcompat:1.3.1" - testImplementation 'junit:junit:4.12' + testImplementation "junit:junit:$junitVersion" androidTestImplementation "androidx.test:runner:1.5.2" } diff --git a/wellsql/build.gradle b/wellsql/build.gradle index 76313df..1ae3b25 100644 --- a/wellsql/build.gradle +++ b/wellsql/build.gradle @@ -24,7 +24,7 @@ android { dependencies { api wellSqlAnnotationsProjectDependency implementation "androidx.annotation:annotation:$androidxAnnotationVersion" - testImplementation 'junit:junit:4.12' + testImplementation "junit:junit:$junitVersion" } project.afterEvaluate {