build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. allprojects {
  3. repositories {
  4. mavenCentral()
  5. mavenLocal()
  6. google()
  7. maven { url "https://jitpack.io" }
  8. maven { url "https://mvntmp.mobanisto.de" }
  9. }
  10. afterEvaluate {
  11. tasks.withType(Test) {
  12. // Allow tests to be re-run if any optional tests are enabled
  13. outputs.upToDateWhen { System.getenv("OPTIONAL_TESTS") == null }
  14. // Use entropy-gathering device specified on command line, if any
  15. systemProperty 'java.security.egd', System.getProperty('java.security.egd')
  16. }
  17. }
  18. }
  19. buildscript {
  20. repositories {
  21. mavenLocal()
  22. google()
  23. maven {
  24. url 'https://plugins.gradle.org/m2/'
  25. }
  26. }
  27. ext {
  28. kotlin_version = '1.7.10'
  29. dagger_version = "2.43.2"
  30. // okhttp 3.12.x is supported until end of 2021, newer versions need minSdk 21
  31. okhttp_version = "3.12.13"
  32. jackson_version = "2.13.4"
  33. tor_version = "0.4.7.13"
  34. obfs4proxy_version = "0.0.14"
  35. snowflake_version = "2.5.1"
  36. jsoup_version = '1.15.3'
  37. bouncy_castle_version = '1.71'
  38. junit_version = "4.13.2"
  39. jmock_version = '2.12.0'
  40. mockwebserver_version = '4.9.3'
  41. }
  42. dependencies {
  43. classpath 'com.android.tools.build:gradle:7.2.2'
  44. classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.5.3'
  45. classpath files('libs/gradle-witness.jar')
  46. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  47. }
  48. }
  49. if ((project.hasProperty("briar.mailbox_integration_tests") && project.property("briar.mailbox_integration_tests") == "true")
  50. || System.env.MAILBOX_INTEGRATION_TESTS) {
  51. configure([project(':mailbox-core'), project(':mailbox-lib')]) {
  52. apply from: "../gradle/variables.gradle"
  53. }
  54. }