build.gradle 1.38 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 {
8 9
	compile "com.google.dagger:dagger:2.8"
	compile 'com.google.dagger:dagger-compiler:2.8'
akwizgran's avatar
akwizgran committed
10
	compile 'com.google.code.findbugs:jsr305:3.0.1'
11 12 13 14 15 16 17

	testCompile 'junit:junit:4.12'
	testCompile "org.jmock:jmock:2.8.1"
	testCompile "org.jmock:jmock-junit4:2.8.1"
	testCompile "org.jmock:jmock-legacy:2.8.1"
	testCompile "org.hamcrest:hamcrest-library:1.3"
	testCompile "org.hamcrest:hamcrest-core:1.3"
akwizgran's avatar
akwizgran committed
18 19 20 21
}

dependencyVerification {
	verify = [
22 23 24
			'com.google.dagger:dagger:5070e1dff5c551a4908ba7b93125c0243de2a688aed3d2f475357d86d9d7c0ad',
			'com.google.dagger:dagger-compiler:7b2686f94907868c5364e9965601ffe2f020ba4af1849ad9b57dad5fe3fa6242',
			'com.google.code.findbugs:jsr305:c885ce34249682bc0236b4a7d56efcc12048e6135a5baf7a9cde8ad8cda13fcd',
akwizgran's avatar
akwizgran committed
25
			'javax.inject:javax.inject:91c77044a50c481636c32d916fd89c9118a72195390452c81065080f957de7ff',
26 27
			'com.google.dagger:dagger-producers:1e4043e85f67de381d19e22c7932aaf7ff1611091be7e1aaae93f2c37f331cf2',
			'com.google.guava:guava:ff89d4a4a6b303c4084194975a5a35f55a8af6f7337678b4cc8ddbea9005c323',
akwizgran's avatar
akwizgran committed
28 29
	]
}
30 31 32 33 34 35 36 37 38 39 40 41

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