mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
If an Android module depends on another module's default configuration, Android Studio's linter won't recognise references to classes in the other module. Instead, the Android module must depend on the other module without specifying a configuration. This entails some changes in the handling of transitive dependencies, and the other module must include its main classes in its testOutput artifact so the Android module's tests can use them.
46 lines
1.4 KiB
Groovy
46 lines
1.4 KiB
Groovy
apply plugin: 'java-library'
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
apply plugin: 'ru.vyarus.animalsniffer'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'witness'
|
|
apply from: 'witness.gradle'
|
|
apply from: '../dagger.gradle'
|
|
|
|
dependencies {
|
|
implementation project(path: ':bramble-core', configuration: 'default')
|
|
implementation project(path: ':briar-api', configuration: 'default')
|
|
|
|
implementation 'com.rometools:rome:1.15.0'
|
|
implementation 'org.jdom:jdom2:2.0.6'
|
|
implementation "org.jsoup:jsoup:$jsoup_version"
|
|
|
|
annotationProcessor "com.google.dagger:dagger-compiler:$dagger_version"
|
|
|
|
testImplementation project(path: ':bramble-api', configuration: 'testOutput')
|
|
testImplementation project(path: ':bramble-core', configuration: 'testOutput')
|
|
|
|
testImplementation 'net.jodah:concurrentunit:0.4.2'
|
|
testImplementation "junit:junit:$junit_version"
|
|
testImplementation "org.jmock:jmock:$jmock_version"
|
|
testImplementation "org.jmock:jmock-junit4:$jmock_version"
|
|
testImplementation "org.jmock:jmock-imposters:$jmock_version"
|
|
|
|
testAnnotationProcessor "com.google.dagger:dagger-compiler:$dagger_version"
|
|
|
|
signature 'org.codehaus.mojo.signature:java16:1.1@signature'
|
|
}
|
|
|
|
// needed to make test output available to briar-headless
|
|
configurations {
|
|
testOutput.extendsFrom(testCompile)
|
|
}
|
|
task jarTest(type: Jar, dependsOn: testClasses) {
|
|
from sourceSets.test.output, sourceSets.main.output
|
|
classifier = 'test'
|
|
}
|
|
artifacts {
|
|
testOutput jarTest
|
|
}
|