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