Source

javafx-gradle / gradle-javafx-plugin / build.gradle

apply plugin: 'groovy'
apply plugin: 'maven'

group = 'org.bitbucket.shemnon.javafxplugin'
version = '0.2.0'

repositories {
    mavenCentral()
}

dependencies {
    groovy 'org.codehaus.groovy:groovy-all:2.0.5'
    compile 'org.jclarion:image4j:0.7'
    compile gradleApi()
    compile files("${System.properties['java.home']}/../lib/ant-javafx.jar")
    compile fileTree(dir: "${System.properties['java.home']}", include: '**/jfxrt.jar')
}

uploadArchives {
    repositories {
        mavenDeployer {
            repository(url:"https://api.bintray.com/maven/shemnon/javafx-gradle/gradle-javafx-plugin/",
                id: 'bintray-shemnon-javafx-gradle-plugin'
            ) {
                try {
                    authentication(
                        userName: bintrayUserName,
                        password: bintrayApiKey
                    )
                } catch (MissingPropertyException pne) {
                    // ignore, don't authenticate
                }
            }
            snapshotRepository (url: "https://repository-javafx-gradle-plugin.forge.cloudbees.com/snapshot/",
                id: 'cloudbees-javafx-gradle-plugin'
            ) {
                try {
                    authentication(
                        userName: cloudbeesUserName,
                        password: cloudbeesPassword
                    )
                } catch (MissingPropertyException pne) {
                    // ignore, don't authenticate
                }
            }
        }
    }
}

[install.repositories.mavenInstaller, uploadArchives.repositories.mavenDeployer]*.pom*.whenConfigured {pom ->
    pom.project {
        dependencies {
            dependency {
                groupId 'net.java.openjdk'
                artifactId 'jfxrt'
                version '8b72'
                scope 'system'
                systemPath '${java.home}/lib/jfxrt.jar'
            }
            dependency {
                groupId 'net.java.openjdk'
                artifactId 'jfxrt'
                version '8b75'
                scope 'system'
                systemPath '${java.home}/lib/ext/jfxrt.jar'
            }
            dependency {
                groupId 'net.java.openjdk'
                artifactId 'ant-javafx'
                version '8b72'
                scope 'system'
                systemPath '${java.home}/../lib/ant-javafx.jar'
            }
            dependency {
                groupId 'org.jclarion'
                artifactId 'image4j'
                version '0.7'
            }
        }
    }
}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.