WIP compiling files for different versions of java

This commit is contained in:
nathan 2018-12-21 11:11:43 +01:00
parent 2b8befa88f
commit 5183309262

View File

@ -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
//}