1
0

build.gradle 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.5.3"
  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. // do not upgrade to 1.7.14, since in 1.7.14 Rhino uses the `SourceVersion` class, which is not
  39. // available on Android (even when using desugaring), and `NoClassDefFoundError` is thrown
  40. implementation 'org.mozilla:rhino:1.7.13'
  41. checkstyle "com.puppycrawl.tools:checkstyle:$checkstyleVersion"
  42. testImplementation platform("org.junit:junit-bom:$junitVersion")
  43. testImplementation 'org.junit.jupiter:junit-jupiter-api'
  44. testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
  45. testImplementation 'org.junit.jupiter:junit-jupiter-params'
  46. testImplementation 'com.google.code.gson:gson:2.9.1'
  47. }