From 5183309262f7bd38a306bcaf6cf8148912ca969d Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 21 Dec 2018 11:11:43 +0100 Subject: [PATCH] WIP compiling files for different versions of java --- build.gradle | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 443a7842..cc729fb4 100644 --- a/build.gradle +++ b/build.gradle @@ -317,7 +317,7 @@ task compileUtils(type: JavaCompile) { 'dorkbox.util.NativeLoader', 'dorkbox.util.generics.TypeResolver', - // 'dorkbox.util.generics.DefaultMethodHelper', // this class must be compiled java 8+ + 'dorkbox.util.generics.DefaultMethodHelper', // this class must be compiled java 8+ 'dorkbox.util.generics.ClassHelper', 'dorkbox.util.bytes.BigEndian', @@ -362,10 +362,16 @@ task compileUtils(type: JavaCompile) { ////// Compile files to different target version /////////////////////////////// //task compileFilesToJava8(type: JavaCompile) { -// source = sourceSets.main.java.srcDirs +// // we don't want the default include of **/*.java +// getIncludes().clear() +// +// source = Collections.singletonList('../Utilities/src') // // include 'dorkbox/util/generics/DefaultMethodHelper.java' // +// sourceCompatibility = 1.8 +// targetCompatibility = 1.8 +// // classpath = sourceSets.main.compileClasspath // destinationDir = sourceSets.main.output.classesDir //}