build.gradle 787 B

12345678910111213141516171819202122232425262728293031
  1. apply plugin: 'java-library'
  2. sourceCompatibility = 1.8
  3. targetCompatibility = 1.8
  4. apply plugin: 'ru.vyarus.animalsniffer'
  5. apply plugin: 'witness'
  6. apply from: 'witness.gradle'
  7. dependencies {
  8. implementation "com.google.dagger:dagger:2.24"
  9. implementation 'com.google.code.findbugs:jsr305:3.0.2'
  10. testImplementation "junit:junit:$junit_version"
  11. testImplementation "org.jmock:jmock:$jmock_version"
  12. testImplementation "org.jmock:jmock-junit4:$jmock_version"
  13. signature 'org.codehaus.mojo.signature:java16:1.1@signature'
  14. }
  15. // needed to make test output available to bramble-core and briar-core
  16. configurations {
  17. testOutput.extendsFrom(testCompile)
  18. }
  19. task jarTest(type: Jar, dependsOn: testClasses) {
  20. from sourceSets.test.output
  21. classifier = 'test'
  22. }
  23. artifacts {
  24. testOutput jarTest
  25. }