build.gradle 1.04 KB
Newer Older
akwizgran's avatar
akwizgran committed
1 2 3 4 5 6 7
apply plugin: 'java'
sourceCompatibility = 1.6
targetCompatibility = 1.6

apply plugin: 'witness'

dependencies {
Torsten Grote's avatar
Torsten Grote committed
8
	compile "com.google.dagger:dagger:2.0.2"
9
	compile 'com.google.code.findbugs:jsr305:3.0.2'
10 11

	testCompile 'junit:junit:4.12'
12 13 14
	testCompile "org.jmock:jmock:2.8.2"
	testCompile "org.jmock:jmock-junit4:2.8.2"
	testCompile "org.jmock:jmock-legacy:2.8.2"
15 16
	testCompile "org.hamcrest:hamcrest-library:1.3"
	testCompile "org.hamcrest:hamcrest-core:1.3"
akwizgran's avatar
akwizgran committed
17 18 19 20
}

dependencyVerification {
	verify = [
Torsten Grote's avatar
Torsten Grote committed
21
			'com.google.dagger:dagger:84c0282ed8be73a29e0475d639da030b55dee72369e58dd35ae7d4fe6243dcf9',
22
			'com.google.code.findbugs:jsr305:766ad2a0783f2687962c8ad74ceecc38a28b9f72a2d085ee438b7813e928d0c7',
akwizgran's avatar
akwizgran committed
23 24 25
			'javax.inject:javax.inject:91c77044a50c481636c32d916fd89c9118a72195390452c81065080f957de7ff',
	]
}
26 27 28 29 30

// needed to make test output available to bramble-core and briar-core
configurations {
	testOutput.extendsFrom(testCompile)
}
31
task jarTest(type: Jar, dependsOn: testClasses) {
32 33 34 35 36 37
	from sourceSets.test.output
	classifier = 'test'
}
artifacts {
	testOutput jarTest
}