Source

javafx-gradle / samples / FullyExpressed / build.gradle

Full commit
apply from: 'https://repository-javafx-gradle-plugin.forge.cloudbees.com/snapshot/javafx.plugin'
apply plugin: 'idea'

repositories {
    mavenCentral()
}

dependencies {
    compile 'org.jfxtras:jfxtras-labs:2.2-r4'
}

javafx {

    debugKey {
        alias = 'buggyKey'
        keyPass = '123456'
        keyStore = file('veryinsecure.jks')
        storePass = '123456'
    }
    // don't get too excited, the release key is overridden by gradle.properties
    releaseKey {
        alias = 'imaginary'
        keyPass = 'bad'
        keyStore = file('nonexistant.jks')
        storePass = 'bad'
    }
    signingMode = 'release'

    appID = 'FullyExpressed'
    appName = 'Fully Expressed Build File'
    mainClass = 'com.bitbucket.shemnon.jfx.sample.fullyexpressed.TheMain'

    packaging = 'image'
}

generateDebugKey {
    dname='ou=them'
    validity=1
}

jfxDeploy {
    // applet and webstart stuff
    width = 800
    height = 600
    embedJNLP = false

    // verbose output of the deployment, to the info chanel
    // it leaves files in the temp dir if set to true
    verbose = false


    // deplpy/info attributes
    category = 'demo'
    copyright = 'Copyright (c) 2012 Danno Ferrin'
    description = '''If it can and ever should be configured, it is configured in this build.
But really, you should live with the conventions when appropriate.'''
    licenseType = '3 clause BSD'
    vendor = 'Me!'

    // deploy/preferences attributes
    installSystemWide = true
    menu = true
    shortcut = true

    codebase = 'http://example.com/bogus/JNLP/Codebase'
    icon {
        href = 'src/main/resources/javafx-icon.png'
        kind = 'default'
        width = 128
        height = 128
        depth = 8
        mode = 'ALL'
    }
    icon {
        href = 'src/main/resources/javafx-icon.png'
        kind = 'shortcut'
        width = 128
        height = 128
        depth = 8
        mode = 'ALL'
    }
}