1. shemnon
  2. javafx-gradle

Commits

shemnon  committed 4b4ff7c

use scenicview 8.0 dp1 when on JDK8

  • Participants
  • Parent commits eb7eea9
  • Branches master

Comments (0)

Files changed (1)

File gradle-javafx-plugin/src/main/groovy/org/bitbucket/shemnon/javafxplugin/JavaFXPlugin.groovy

View file
  • Ignore whitespace
 package org.bitbucket.shemnon.javafxplugin
 
 import org.gradle.api.GradleException
+import org.gradle.api.JavaVersion
 import org.gradle.api.Project
 import org.gradle.api.Plugin
 import org.bitbucket.shemnon.javafxplugin.tasks.JavaFXDeployTask
                 ivy  { url 'https://repository-javafx-gradle-plugin.forge.cloudbees.com/release' }
             }
             project.dependencies {
-                scenicview 'com.fxexperience.scenicview:scenicview:1.3.0'
+                if (JavaVersion.current().java8Compatible) {
+                    scenicview 'com.fxexperience.scenicview:scenicview:8.0-dp1'
+                } else {
+                    scenicview 'com.fxexperience.scenicview:scenicview:1.3.0'
+                }
             }
 
             project.tasks.findAll {it.group == 'Execution' && it instanceof JavaExec}.each {JavaExec execTask ->