Commits

shemnon committed 06ca0b3

provide a default version that makes sense to javafx installers. Make it a deploy convention

  • Participants
  • Parent commits 1b67986

Comments (0)

Files changed (3)

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

         task.conventionMapping.appID = {convention, aware -> project.javafx.appID }
         task.conventionMapping.appName = {convention, aware -> project.javafx.appName }
         task.conventionMapping.mainClass = {convention, aware -> project.javafx.mainClass }
+        task.conventionMapping.version = {convention, aware -> ('unspecified' == project.version) ? '0.0.0' : project.version }
 
 
         task.conventionMapping.inputFiles = {convention, aware ->

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

     String licenseType
     String vendor
     List<IconInfo> iconInfos = []
+    String version
 
     // deploy/preferences attributes
     Boolean installSystemWide
     processResources() {
         DeployParams deployParams = new DeployParams();
 
-        deployParams.version = getProject().getVersion() // FIXME make a convention property
+        deployParams.version = getVersion()
 
         // these deploy params are currently not set
         //java.lang.String preloader;

File samples/brickbreaker/build.gradle

-apply from: 'https://repository-javafx-gradle-plugin.forge.cloudbees.com/snapshot/javafx.plugin'
-
-version = '1.8.0.0'
+apply from: 'https://repository-javafx-gradle-plugin.forge.cloudbees.com/snapshot/javafx.plugin'