build.gradle 1.6 KB

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