build.gradle 1.6 KB

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