Commits

shemnon committed ec39591

jar explosion no longer needed with 7u40

Comments (0)

Files changed (1)

gradle-javafx-plugin/src/main/groovy/org/bitbucket/shemnon/javafxplugin/tasks/JavaFXJarTask.groovy

     processResources() {
         CreateJarParams createJarParams = new CreateJarParams();
 
-        if (JavaVersion.current().java8Compatible) {
-            createJarParams.addResource(null, getJarFile())
-        } else {
-            // Boo!  Hiss!  Under JDK7 we must explode!
-            File exploded = "build/jdk7Compat/${getJarFile().name}" as File
-            exploded.mkdirs()
-            project.copy {
-                from project.zipTree(getJarFile())
-                into exploded
-            }
-            createJarParams.addResource(exploded, ".")
-        }
-
+        createJarParams.addResource(null, getJarFile())
         createJarParams.applicationClass = getMainClass()
         createJarParams.arguments = getArguments()
         createJarParams.classpath = getClasspath().files.collect {it.name}.join ' '