Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- dependencies {
- classpath group: 'de.dynamicfiles.projects.gradle.plugins', name: 'javafx-gradle-plugin', version: '1.0'
- }
- repositories {
- mavenCentral()
- }
- }
- apply plugin: 'java'
- version = "0.0.001"
- group = "com.powerknights.dashboard"
- def year = '2016'
- repositories {
- mavenCentral()
- }
- dependencies {
- compile files("${System.properties['java.home']}/../lib/packager.jar")
- compile 'com.google.code.gson:gson:2.3.1'
- compile fileTree(dir: 'lib', include: '*.jar')
- }
- apply plugin: 'javafx-gradle-plugin'
- jar {
- /*manifest {
- def requiredProjects = ''
- configurations.compile.getAllDependencies().withType(ProjectDependency).each {dep->
- def dependantProjects = dep.getDependencyProject()
- def projects = project(dependantProjects.path).libsDir.list().findAll{it.endsWith('.jar')}
- projects.removeAll(projects.findAll{it.endsWith('test.jar')})
- def requiredProject = projects.join(' ')
- requiredProjects += requiredProject.replaceAll(/ /,'%20') + ' '
- // logger.info 'Required Project: ' + requiredProject
- }
- // logger.info 'Required requiredProjects: ' + requiredProjects
- def compileFiles = configurations.compile.files{ it instanceof ExternalDependency }.collect {
- File file = it
- "lib/${file.name}"
- }.join(' ')
- def manifestPath = requiredProjects + compileFiles
- // logger.info 'Manifest: '+ manifestPath
- attributes 'Main-Class': "com.powerknights.dashboard.Launcher"
- attributes 'Class-Path': manifestPath
- attributes 'Build-date': new Date();
- attributes 'Application-Version': project.version
- }*/
- }
- jfx{
- appName = 'Smart Dashboard ' + project.version
- mainClass = 'com.powerknights.dashboard.Launcer'
- jfxMainAppJarName = 'FRCSmarDashboard-' + year + '-' + project.version + '.jar'
- bundler = 'windows.app'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement