2022-03-16 21:53:21 +00:00
|
|
|
plugins {
|
|
|
|
id 'checkstyle'
|
|
|
|
}
|
|
|
|
|
2021-01-15 17:08:20 +00:00
|
|
|
test {
|
2022-03-16 21:53:21 +00:00
|
|
|
// Pass on downloader type to tests for different CI jobs. See DownloaderFactory.java and ci.yml
|
2021-01-15 17:08:20 +00:00
|
|
|
if (System.properties.containsKey('downloader')) {
|
|
|
|
systemProperty('downloader', System.getProperty('downloader'))
|
|
|
|
}
|
2021-12-27 20:08:08 +00:00
|
|
|
useJUnitPlatform()
|
2022-03-16 21:53:21 +00:00
|
|
|
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 17:08:20 +00:00
|
|
|
}
|
|
|
|
|
2018-03-14 03:44:02 +00:00
|
|
|
dependencies {
|
|
|
|
implementation project(':timeago-parser')
|
|
|
|
|
2021-08-07 21:51:09 +00:00
|
|
|
implementation "com.github.TeamNewPipe:nanojson:$nanojsonVersion"
|
2023-12-29 09:47:00 +00:00
|
|
|
implementation 'org.jsoup:jsoup:1.17.2'
|
2021-08-07 21:51:09 +00:00
|
|
|
implementation "com.github.spotbugs:spotbugs-annotations:$spotbugsVersion"
|
2018-03-14 03:44:02 +00:00
|
|
|
|
2022-08-25 07:49:13 +00:00
|
|
|
// 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 09:43:05 +00:00
|
|
|
implementation 'org.mozilla:rhino:1.7.15'
|
2022-08-25 07:49:13 +00:00
|
|
|
|
2022-03-16 21:53:21 +00:00
|
|
|
checkstyle "com.puppycrawl.tools:checkstyle:$checkstyleVersion"
|
|
|
|
|
2021-12-27 20:08:08 +00:00
|
|
|
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-14 22:44:19 +00:00
|
|
|
testImplementation "com.squareup.okhttp3:okhttp:3.12.13"
|
2024-06-29 09:22:41 +00:00
|
|
|
testImplementation 'com.google.code.gson:gson:2.11.0'
|
2020-04-16 14:08:14 +00:00
|
|
|
}
|