diff --git a/build.gradle b/build.gradle index 674903596..5f5caa23e 100644 --- a/build.gradle +++ b/build.gradle @@ -15,6 +15,12 @@ allprojects { jcenter() maven { url "https://jitpack.io" } } + + ext { + nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751" + spotbugsVersion = "4.2.3" + junitVersion = "4.13.2" + } } dependencies { diff --git a/extractor/build.gradle b/extractor/build.gradle index c1c11a05a..fb1186376 100644 --- a/extractor/build.gradle +++ b/extractor/build.gradle @@ -8,13 +8,13 @@ test { dependencies { implementation project(':timeago-parser') - implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751' + implementation "com.github.TeamNewPipe:nanojson:$nanojsonVersion" implementation 'org.jsoup:jsoup:1.13.1' implementation 'org.mozilla:rhino:1.7.13' - implementation 'com.github.spotbugs:spotbugs-annotations:4.2.3' + implementation "com.github.spotbugs:spotbugs-annotations:$spotbugsVersion" implementation 'org.nibor.autolink:autolink:0.10.0' - testImplementation 'junit:junit:4.13.2' + testImplementation "junit:junit:$junitVersion" testImplementation "com.squareup.okhttp3:okhttp:3.12.13" testImplementation 'com.google.code.gson:gson:2.8.7' } diff --git a/timeago-parser/build.gradle b/timeago-parser/build.gradle index 1a5bc9719..2f761e579 100644 --- a/timeago-parser/build.gradle +++ b/timeago-parser/build.gradle @@ -1,6 +1,6 @@ dependencies { - testImplementation 'junit:junit:4.13.1' + testImplementation "junit:junit:$junitVersion" - implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751' - implementation 'com.github.spotbugs:spotbugs-annotations:4.2.3' + implementation "com.github.TeamNewPipe:nanojson:$nanojsonVersion" + implementation "com.github.spotbugs:spotbugs-annotations:$spotbugsVersion" }