From 3eef793bda3c9e460ba99956916111aea9000f5f Mon Sep 17 00:00:00 2001 From: str4d <str4d@mail.i2p> Date: Tue, 31 Oct 2017 08:35:04 +0000 Subject: [PATCH] Add bootstrap classpath JARs if necessary --- build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index fd7f17aea2..d75b497c96 100644 --- a/build.gradle +++ b/build.gradle @@ -11,12 +11,19 @@ subprojects { testCompile 'org.hamcrest:hamcrest-library:1.3' } - sourceCompatibility = 1.7 jar { manifest { attributes 'Implementation-Version': '0.9.31-7' } } + + sourceCompatibility = 1.7 + // Set bootClasspath=/path/to/rt.jar:/path/to/jce.jar in gradle.properties if needed + if (bootClasspath) { + tasks.withType(AbstractCompile, { AbstractCompile ac -> + ac.options.bootstrapClasspath = files(bootClasspath) + }) + } } //apply from: file('gradle/update.gradle') -- GitLab