Files
briar/build.gradle
akwizgran 7b65c63bc9 Package Android binaries, enable desugaring, bump min API level.
FIXME: Desugaring ConcurrentHashMap.newKeySet() requires
desugar_jdk_libs version 2, which requires bumping the Android Gradle
plugin version. This seems to have broken Gradle Witness.
2023-09-05 14:50:23 +01:00

57 lines
1.6 KiB
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
allprojects {
repositories {
mavenCentral()
google()
maven { url "https://jitpack.io" }
}
afterEvaluate {
tasks.withType(Test) {
// Allow tests to be re-run if any optional tests are enabled
outputs.upToDateWhen { System.getenv("OPTIONAL_TESTS") == null }
// Use entropy-gathering device specified on command line, if any
systemProperty 'java.security.egd', System.getProperty('java.security.egd')
}
}
}
buildscript {
repositories {
google()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
ext {
kotlin_version = '1.8.20'
dagger_version = "2.45"
okhttp_version = "4.10.0"
jackson_version = "2.13.4"
tor_version = "0.4.7.14"
obfs4proxy_version = "0.0.14-tor2"
snowflake_version = "2.5.1"
jsoup_version = '1.15.3'
bouncy_castle_version = '1.71' // 1.72 accidentally depends on Java 7
junit_version = "4.13.2"
jmock_version = '2.12.0'
mockwebserver_version = '4.10.0'
onionwrapper_version = '0.0.5'
sqlite_jdbc_crypt_version = '3.41.2.1'
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.7.0'
classpath files('libs/gradle-witness.jar')
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
if ((project.hasProperty("briar.mailbox_integration_tests") && project.property("briar.mailbox_integration_tests") == "true")
|| System.env.MAILBOX_INTEGRATION_TESTS) {
configure([project(':mailbox-core'), project(':mailbox-lib')]) {
apply from: "../gradle/variables.gradle"
}
}