Skip to content

Gradle plugin to generate jnlp files, sign jars etc. for being able to start an application with Java Webstart

License

Notifications You must be signed in to change notification settings

tschulte/gradle-jnlp-plugin

Repository files navigation

Build Status Coverage Status

Gradle plugin to create webstart files

To use in a griffon 2 application add following to your build.gradle:

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'de.gliderpilot.gradle.jnlp:gradle-jnlp-plugin:+'
    }
}

apply plugin: 'de.gliderpilot.jnlp'

jnlp {
    useVersions = true
    withXml {
        information {
            title project.name
            vendor project.group ?: project.name
        }
        security {
            'all-permissions'()
        }
    }
    signJarParams = [alias: 'myalias', storepass: 'mystorepass']
}

task genkey << {
    ant.genkey(alias: 'myalias', storepass: 'mystorepass', dname: 'CN=Ant Group, OU=Jakarta Division, O=Apache.org, C=US')
}

Than execute

./gradlew genkey

followed by

./gradlew createWebstart

which will create webstart files at build/jnlp.

To launch the application with webstart, call javaws build/jnlp/launch.jnlp (you must first set your java security settings to medium, or use a real certificate).

About

Gradle plugin to generate jnlp files, sign jars etc. for being able to start an application with Java Webstart

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published