2022-03-17 03:23:21 +05:30
|
|
|
plugins {
|
|
|
|
id 'checkstyle'
|
|
|
|
}
|
|
|
|
|
2021-01-15 22:38:20 +05:30
|
|
|
test {
|
2022-03-17 03:23:21 +05:30
|
|
|
// Pass on downloader type to tests for different CI jobs. See DownloaderFactory.java and ci.yml
|
2021-01-15 22:38:20 +05:30
|
|
|
if (System.properties.containsKey('downloader')) {
|
|
|
|
systemProperty('downloader', System.getProperty('downloader'))
|
|
|
|
}
|
2021-12-28 01:38:08 +05:30
|
|
|
useJUnitPlatform()
|
2022-03-17 03:23:21 +05:30
|
|
|
dependsOn checkstyleMain // run checkstyle when testing
|
|
|
|
}
|
|
|
|
|
|
|
|
checkstyle {
|
|
|
|
getConfigDirectory().set(rootProject.file("checkstyle"))
|
|
|
|
ignoreFailures false
|
|
|
|
showViolations true
|
|
|
|
toolVersion checkstyleVersion
|
|
|
|
}
|
|
|
|
|
|
|
|
checkstyleTest {
|
|
|
|
enabled false // do not checkstyle test files
|
2021-01-15 22:38:20 +05:30
|
|
|
}
|
|
|
|
|
2018-03-14 09:14:02 +05:30
|
|
|
dependencies {
|
|
|
|
implementation project(':timeago-parser')
|
|
|
|
|
2021-08-08 03:21:09 +05:30
|
|
|
implementation "com.github.TeamNewPipe:nanojson:$nanojsonVersion"
|
2023-12-29 15:17:00 +05:30
|
|
|
implementation 'org.jsoup:jsoup:1.17.2'
|
2021-08-08 03:21:09 +05:30
|
|
|
implementation "com.github.spotbugs:spotbugs-annotations:$spotbugsVersion"
|
2018-03-14 09:14:02 +05:30
|
|
|
|
2022-08-25 13:19:13 +05:30
|
|
|
// do not upgrade to 1.7.14, since in 1.7.14 Rhino uses the `SourceVersion` class, which is not
|
|
|
|
// available on Android (even when using desugaring), and `NoClassDefFoundError` is thrown
|
2024-05-06 15:13:05 +05:30
|
|
|
implementation 'org.mozilla:rhino:1.7.15'
|
2022-08-25 13:19:13 +05:30
|
|
|
|
2022-03-17 03:23:21 +05:30
|
|
|
checkstyle "com.puppycrawl.tools:checkstyle:$checkstyleVersion"
|
|
|
|
|
2021-12-28 01:38:08 +05:30
|
|
|
testImplementation platform("org.junit:junit-bom:$junitVersion")
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-params'
|
|
|
|
|
2021-02-15 04:14:19 +05:30
|
|
|
testImplementation "com.squareup.okhttp3:okhttp:3.12.13"
|
2023-01-09 14:35:55 +05:30
|
|
|
testImplementation 'com.google.code.gson:gson:2.10.1'
|
2020-04-16 19:38:14 +05:30
|
|
|
}
|