Skip to content

Instantly share code, notes, and snippets.

@mezz
mezz / bootstrap.gradle
Created January 3, 2017 21:09 — forked from cpw/bootstrap.gradle
This makes gradle compile java6 stuff with the actual java 6 classpath. --- Usage: Drop this file in USER_HOME/.gradle/init.d --- You will probably want to change the path to your java6 instance.
allprojects {
afterEvaluate {
def versions = [
'1.6' : "/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/",
'1.7' : "/usr/lib/jvm/jdk-7-oracle-x64/jre/lib/",
'1.8' : "/usr/lib/jvm/jdk-8-oracle-x64/jre/lib/",
]
// convert map to classpaths
versions = versions.collectEntries { key, value ->