build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. apply plugin: 'java-library'
  2. sourceCompatibility = 1.8
  3. targetCompatibility = 1.8
  4. apply plugin: 'ru.vyarus.animalsniffer'
  5. apply plugin: 'idea'
  6. apply plugin: 'witness'
  7. apply from: 'witness.gradle'
  8. apply from: '../dagger.gradle'
  9. dependencies {
  10. implementation project(path: ':briar-api', configuration: 'default')
  11. implementation 'com.rometools:rome:1.12.1'
  12. implementation 'org.jdom:jdom2:2.0.6'
  13. // okhttp 3.12.x is supported until end of 2020, newer versions need minSdk 21
  14. implementation 'com.squareup.okhttp3:okhttp:3.12.6'
  15. implementation 'org.jsoup:jsoup:1.11.3'
  16. annotationProcessor 'com.google.dagger:dagger-compiler:2.24'
  17. testImplementation project(path: ':bramble-core', configuration: 'default')
  18. testImplementation project(path: ':bramble-core', configuration: 'testOutput')
  19. testImplementation project(path: ':bramble-api', configuration: 'testOutput')
  20. testImplementation 'net.jodah:concurrentunit:0.4.2'
  21. testImplementation 'junit:junit:4.12'
  22. testImplementation "org.jmock:jmock:2.8.2"
  23. testImplementation "org.jmock:jmock-junit4:2.8.2"
  24. testImplementation "org.jmock:jmock-legacy:2.8.2"
  25. testAnnotationProcessor 'com.google.dagger:dagger-compiler:2.24'
  26. signature 'org.codehaus.mojo.signature:java16:1.1@signature'
  27. }
  28. // needed to make test output available to briar-headless
  29. configurations {
  30. testOutput.extendsFrom(testCompile)
  31. }
  32. task jarTest(type: Jar, dependsOn: testClasses) {
  33. from sourceSets.test.output
  34. classifier = 'test'
  35. }
  36. artifacts {
  37. testOutput jarTest
  38. }