tschulte/gradle-jnlp-plugin

version missed

ilsaul opened this issue · 2 comments

May I ask to add the next code:


diff --git a/gradle-jnlp-plugin/src/main/groovy/de/gliderpilot/gradle/jnlp/GradleJnlpPluginExtension.groovy b/gradle-jnlp-plugin/src/main/groovy/de/gliderpilot/gradle/jnlp/GradleJnlpPluginExtension.groovy
index b4886ef..85ab6b0 100644
--- a/gradle-jnlp-plugin/src/main/groovy/de/gliderpilot/gradle/jnlp/GradleJnlpPluginExtension.groovy
+++ b/gradle-jnlp-plugin/src/main/groovy/de/gliderpilot/gradle/jnlp/GradleJnlpPluginExtension.groovy
@@ -36,8 +36,6 @@
     // not needed, if application-plugin is applied
     String mainClassName
 
-
-
     Map jnlpParams = [spec: '7.0', href: 'launch.jnlp']
     Map j2seParams
 
@@ -92,6 +90,10 @@ void spec(String spec) {
         jnlpParams.spec = spec
     }
 
+    void version(String version) {
+        jnlpParams.version = version
+    }
+
     void withXml(Closure closure) {
         withXmlClosure = closure
     }

I can use project version, sorry close this. No need to change.

Yes, the default is to use project.version, if set. But documentation is on my TODO list;)