Files
SmartCSV.fx/build.gradle

73 lines
2.8 KiB
Groovy
Raw Normal View History

2015-11-28 23:06:14 +01:00
group 'ninja.javafx'
version '0.9-SNAPSHOT'
2015-11-28 23:06:14 +01:00
2016-10-06 14:01:52 +02:00
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'no.tornado:fxlauncher-gradle-plugin:1.0.12'
}
}
2015-11-28 23:06:14 +01:00
apply plugin: 'java'
apply plugin: 'groovy'
2016-10-06 14:01:52 +02:00
apply plugin: 'application'
2015-11-28 23:06:14 +01:00
apply plugin: 'idea'
2016-10-06 14:01:52 +02:00
apply plugin: 'no.tornado.fxlauncher'
2015-11-28 23:06:14 +01:00
sourceCompatibility = 1.8
mainClassName = 'ninja.javafx.smartcsv.fx.SmartCSV'
2016-10-06 21:07:01 +02:00
def fxlauncherPathName = getBuildDir().absolutePath + File.separatorChar + 'fxlauncher' + File.separatorChar
2016-10-06 14:01:52 +02:00
fxlauncher {
applicationVendor 'Andreas Billmann (andreas.billmann@javafx.ninja)'
applicationUrl 'http://javafx.ninja/SmartCSV.fx/'
applicationMainClass mainClassName
acceptDowngrade false
cacheDir 'USERLIB/SmartCSV.fx'
}
2015-11-28 23:06:14 +01:00
repositories {
mavenCentral()
jcenter()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
2015-12-07 22:41:59 +01:00
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
2016-07-09 21:55:40 +02:00
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.7'
compile group: 'org.springframework', name:'spring-context', version: '4.3.1.RELEASE'
2015-11-28 23:06:14 +01:00
compile group: 'net.sf.supercsv', name: 'super-csv', version: '2.4.0'
2016-07-09 21:55:40 +02:00
compile group: 'commons-validator', name: 'commons-validator', version: '1.5.1'
compile group: 'de.jensd', name: 'fontawesomefx-commons', version: '8.12'
compile group: 'de.jensd', name: 'fontawesomefx-fontawesome', version: '4.6.3'
compile group: 'de.jensd', name: 'fontawesomefx-materialdesignfont', version: '1.6.50'
compile group: 'de.jensd', name: 'fontawesomefx-materialicons', version: '2.2.0'
2016-07-09 21:55:40 +02:00
compile group: 'org.controlsfx', name: 'controlsfx', version: '8.40.11'
compile group: 'com.google.code.gson', name: 'gson', version: '2.7'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.6.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.6.2'
compile group: 'org.fxmisc.richtext', name: 'richtextfx', version: '0.6.10'
2015-11-28 23:06:14 +01:00
}
2016-07-23 09:36:40 +02:00
task wrapper(type: Wrapper) {
gradleVersion = '3.1' //version required
2016-10-06 14:01:52 +02:00
}
2016-10-06 21:07:01 +02:00
task buildSmartCSV(dependsOn: ['clean','embedApplicationManifest']) << {
def file = new File(fxlauncherPathName + 'fxlauncher.jar')
file.renameTo(fxlauncherPathName + 'SmartCSV.fx.jar')
}
2016-10-06 21:07:01 +02:00
task modifyAppXML(dependsOn: 'generateApplicationManifest') << {
String contents = new File( fxlauncherPathName + 'app.xml' ).getText( 'UTF-8' )
contents = contents.replaceAll( 'Updating...', 'Updating SmartCSV.fx ...' )
contents = contents.replaceAll( '-fx-spacing: 10; -fx-padding: 25;', '-fx-spacing: 10; -fx-padding: 25;-fx-font-size: 0.9em;' )
new File( fxlauncherPathName + 'app.xml' ).write( contents, 'UTF-8' )
}
embedApplicationManifest.dependsOn modifyAppXML
defaultTasks 'buildSmartCSV'