build.gradle 453 Bytes
Newer Older
1
apply plugin: 'java'
2 3
sourceCompatibility = 1.8
targetCompatibility = 1.8
4 5

dependencies {
6
	compile project(path: ':bramble-api', configuration: 'default')
7
}
8 9 10 11 12 13 14 15 16 17

// If a Java 6 JRE is available, check we're not using any Java 7 or 8 APIs
tasks.withType(JavaCompile) {
	doFirst {
		def home = System.env.JAVA_6_HOME;
		if (home != null && !home.isEmpty()) {
			options.bootstrapClasspath = files("${home}/jre/lib/rt.jar", "${home}/jre/lib/jsse.jar")
		}
	}
}