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. 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.8.9-1"
  30. obfs4proxy_version = "0.0.14-tor2"
  31. snowflake_version = "2.9.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.1.0'
  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")
  48. && 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. }