build.gradle 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. plugins {
  2. id 'checkstyle'
  3. id 'com.squareup.wire' version '4.4.0'
  4. }
  5. test {
  6. // Pass on downloader type to tests for different CI jobs. See DownloaderFactory.java and ci.yml
  7. if (System.properties.containsKey('downloader')) {
  8. systemProperty('downloader', System.getProperty('downloader'))
  9. }
  10. useJUnitPlatform()
  11. dependsOn checkstyleMain // run checkstyle when testing
  12. }
  13. checkstyle {
  14. getConfigDirectory().set(rootProject.file("checkstyle"))
  15. ignoreFailures false
  16. showViolations true
  17. toolVersion checkstyleVersion
  18. }
  19. wire {
  20. java {
  21. }
  22. }
  23. checkstyleTest {
  24. enabled false // do not checkstyle test files
  25. }
  26. dependencies {
  27. implementation project(':timeago-parser')
  28. implementation "com.github.TeamNewPipe:nanojson:$nanojsonVersion"
  29. implementation 'org.jsoup:jsoup:1.15.3'
  30. implementation "org.java-websocket:Java-WebSocket:1.4.1"
  31. implementation "com.github.spotbugs:spotbugs-annotations:$spotbugsVersion"
  32. implementation 'org.nibor.autolink:autolink:0.10.0'
  33. implementation "com.google.protobuf:protobuf-java:3.11.0"
  34. implementation "com.squareup.okhttp3:okhttp:4.10.0"
  35. implementation "org.brotli:dec:0.1.1"
  36. implementation 'org.apache.commons:commons-lang3:3.8.1'
  37. implementation 'commons-codec:commons-codec:1.16.0'
  38. implementation "org.json:json:20231013"
  39. // do not upgrade to 1.7.14, since in 1.7.14 Rhino uses the `SourceVersion` class, which is not
  40. // available on Android (even when using desugaring), and `NoClassDefFoundError` is thrown
  41. implementation 'org.mozilla:rhino:1.7.13'
  42. checkstyle "com.puppycrawl.tools:checkstyle:$checkstyleVersion"
  43. testImplementation platform("org.junit:junit-bom:$junitVersion")
  44. testImplementation 'org.junit.jupiter:junit-jupiter-api'
  45. testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
  46. testImplementation 'org.junit.jupiter:junit-jupiter-params'
  47. testImplementation 'com.google.code.gson:gson:2.9.1'
  48. }