Skip to content

Commit

Permalink
Deps: Extract junit version to root build gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
ParaskP7 committed Jul 4, 2023
1 parent aea9159 commit aa6fa70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
2 changes: 1 addition & 1 deletion well-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion wellsql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ android {
dependencies {
api wellSqlAnnotationsProjectDependency
implementation "androidx.annotation:annotation:$androidxAnnotationVersion"
testImplementation 'junit:junit:4.12'
testImplementation "junit:junit:$junitVersion"
}

project.afterEvaluate {
Expand Down

0 comments on commit aa6fa70

Please sign in to comment.