build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. apply plugin: 'java-library'
  2. sourceCompatibility = 1.8
  3. targetCompatibility = 1.8
  4. apply plugin: 'idea'
  5. apply plugin: 'witness'
  6. apply from: 'witness.gradle'
  7. apply from: '../dagger.gradle'
  8. dependencies {
  9. implementation project(':bramble-core')
  10. implementation fileTree(dir: 'libs', include: '*.jar')
  11. def jna_version = '5.10.0'
  12. implementation "net.java.dev.jna:jna:$jna_version"
  13. implementation "net.java.dev.jna:jna-platform:$jna_version"
  14. testImplementation "org.briarproject:tor-linux:$tor_version"
  15. testImplementation "org.briarproject:obfs4proxy-linux:$obfs4proxy_version"
  16. testImplementation "org.briarproject:snowflake-linux:$snowflake_version"
  17. annotationProcessor "com.google.dagger:dagger-compiler:$dagger_version"
  18. testImplementation project(path: ':bramble-api', configuration: 'testOutput')
  19. testImplementation project(path: ':bramble-core', configuration: 'testOutput')
  20. testImplementation "junit:junit:$junit_version"
  21. testImplementation "org.jmock:jmock:$jmock_version"
  22. testImplementation "org.jmock:jmock-junit4:$jmock_version"
  23. testImplementation "com.squareup.okhttp3:okhttp:$okhttp_version"
  24. testAnnotationProcessor "com.google.dagger:dagger-compiler:$dagger_version"
  25. }
  26. tasks.withType(Test) {
  27. systemProperty 'java.library.path', 'libs'
  28. }