mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2024-12-03 15:30:11 +01:00
37690058d2
With respect to NewPipe's checkstyle.xml, checkstyle is disabled for javadoc comments. There is no need for strict rules over comments here in the extractor, as sometimes javadocs are just needed to clarify a small thing and having empty/meaningless @param or @throws is useless.
44 lines
1.4 KiB
Groovy
44 lines
1.4 KiB
Groovy
plugins {
|
|
id 'checkstyle'
|
|
}
|
|
|
|
test {
|
|
// Pass on downloader type to tests for different CI jobs. See DownloaderFactory.java and ci.yml
|
|
if (System.properties.containsKey('downloader')) {
|
|
systemProperty('downloader', System.getProperty('downloader'))
|
|
}
|
|
useJUnitPlatform()
|
|
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
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':timeago-parser')
|
|
|
|
implementation "com.github.TeamNewPipe:nanojson:$nanojsonVersion"
|
|
implementation 'org.jsoup:jsoup:1.14.3'
|
|
implementation 'org.mozilla:rhino:1.7.14'
|
|
implementation "com.github.spotbugs:spotbugs-annotations:$spotbugsVersion"
|
|
implementation 'org.nibor.autolink:autolink:0.10.0'
|
|
|
|
checkstyle "com.puppycrawl.tools:checkstyle:$checkstyleVersion"
|
|
|
|
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'
|
|
|
|
testImplementation "com.squareup.okhttp3:okhttp:3.12.13"
|
|
testImplementation 'com.google.code.gson:gson:2.9.0'
|
|
}
|