build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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: ':bramble-api', configuration: 'default')
  11. implementation 'com.madgag.spongycastle:core:1.58.0.0'
  12. implementation 'com.h2database:h2:1.4.192' // The last version that supports Java 1.6
  13. implementation 'org.bitlet:weupnp:0.1.4'
  14. implementation 'net.i2p.crypto:eddsa:0.2.0'
  15. implementation 'org.whispersystems:curve25519-java:0.5.0'
  16. implementation 'org.briarproject:jtorctl:0.3'
  17. annotationProcessor 'com.google.dagger:dagger-compiler:2.24'
  18. testImplementation project(path: ':bramble-api', configuration: 'testOutput')
  19. testImplementation 'org.hsqldb:hsqldb:2.3.5' // The last version that supports Java 1.6
  20. testImplementation 'junit:junit:4.12'
  21. testImplementation "org.jmock:jmock:2.8.2"
  22. testImplementation "org.jmock:jmock-junit4:2.8.2"
  23. testImplementation "org.jmock:jmock-legacy:2.8.2"
  24. testAnnotationProcessor 'com.google.dagger:dagger-compiler:2.24'
  25. signature 'org.codehaus.mojo.signature:java16:1.1@signature'
  26. }
  27. // needed to make test output available to bramble-java
  28. configurations {
  29. testOutput.extendsFrom(testCompile)
  30. }
  31. task jarTest(type: Jar, dependsOn: testClasses) {
  32. from sourceSets.test.output
  33. classifier = 'test'
  34. }
  35. artifacts {
  36. testOutput jarTest
  37. }