build.gradle 920 Bytes
Newer Older
1
apply plugin: 'java-library'
2 3
sourceCompatibility = 1.8
targetCompatibility = 1.8
akwizgran's avatar
akwizgran committed
4

5
apply plugin: 'ru.vyarus.animalsniffer'
akwizgran's avatar
akwizgran committed
6
apply plugin: 'witness'
7
apply from: 'witness.gradle'
akwizgran's avatar
akwizgran committed
8 9

dependencies {
10 11
	implementation "com.google.dagger:dagger:2.0.2"
	implementation 'com.google.code.findbugs:jsr305:3.0.2'
12

13 14 15 16 17 18
	testImplementation 'junit:junit:4.12'
	testImplementation "org.jmock:jmock:2.8.2"
	testImplementation "org.jmock:jmock-junit4:2.8.2"
	testImplementation "org.jmock:jmock-legacy:2.8.2"
	testImplementation "org.hamcrest:hamcrest-library:1.3"
	testImplementation "org.hamcrest:hamcrest-core:1.3"
19 20

	signature 'org.codehaus.mojo.signature:java16:1.1@signature'
akwizgran's avatar
akwizgran committed
21 22
}

23 24 25 26
// needed to make test output available to bramble-core and briar-core
configurations {
	testOutput.extendsFrom(testCompile)
}
27
task jarTest(type: Jar, dependsOn: testClasses) {
28 29 30 31 32 33
	from sourceSets.test.output
	classifier = 'test'
}
artifacts {
	testOutput jarTest
}