-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle
111 lines (90 loc) · 3.69 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply from: 'libs/gradle/javafx.plugin'
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
// NetBeans will automatically add "run" and "debug" tasks relying on the
// "mainClass" property. You may however define the property prior executing
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
//
// Note however, that you may define your own "run" and "debug" task if you
// prefer. In this case NetBeans will not add these tasks but you may rely on
// your own implementation.
if (!hasProperty('mainClass')) {
ext.mainClass = 'eu.mihosoft.vrl.fxscad.JFXScad'
}
repositories {
mavenCentral()
// maven {
// url 'https://oss.sonatype.org/content/repositories/snapshots/'
// }
}
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.10'
compile group: 'org.fxmisc.richtext', name: 'richtextfx', version: '0.6.9'
// compile group: 'org.fxmisc.richtext', name: 'richtextfx', version: '0.6.9', classifier: 'sources'
// compile group: 'org.codehaus.groovy', name: 'groovy', version:'2.3.0-SNAPSHOT';
// compile group: 'org.codehaus.groovy', name: 'groovy', version:'2.3.0-SNAPSHOT', classifier: 'sources';
// compile group: 'org.codehaus.groovy', name: 'groovy', version:'2.3.0-SNAPSHOT', classifier: 'javadoc';
compile group: 'org.codehaus.groovy', name: 'groovy', version:'2.3.7';
compile group: 'org.codehaus.groovy', name: 'groovy', version:'2.3.7', classifier: 'sources';
compile group: 'org.codehaus.groovy', name: 'groovy', version:'2.3.7', classifier: 'javadoc';
compile group: 'org.controlsfx', name: 'controlsfx', version: '8.0.6'
compile group: 'org.controlsfx', name: 'controlsfx', version: '8.0.6', classifier: 'sources'
compile 'commons-io:commons-io:2.4'
// compile fileTree (dir: 'libs/', includes: ['*.jar'])
compile group: 'eu.mihosoft.vrl.jcsg', name: 'jcsg', version: '0.5.2'
compile group: 'eu.mihosoft.vrl.jcsg', name: 'jcsg', version: '0.5.2', classifier: 'sources'
}
// create a fat-jar (class files plus dependencies
// excludes VRL.jar (plugin jar files must not start with 'vrl-\\d+')
jar {
//
// // dependencies except VRL
// from configurations.runtime.asFileTree.
// filter({file->return !file.name.startsWith("vrl-0")}).
// files.collect { zipTree(it) }
//
// // project class files compiled from source
// from files(sourceSets.main.output.classesDir)
//
// manifest { attributes 'Main-Class': mainClass }
}
//task run(type: JavaExec) {
// classpath = sourceSets.main.runtimeClasspath
// main = mainClass;
// jvmArgs = ['-Dprism.forceGPU=true', '-Dprism.verbose=true', '-Dprism.order=es2,d3d,sw']
//// jvmArgs = ['-Dprism.forceGPU=true']
//}
javafx {
appID 'eu.mihosoft.jfxscad'
appName 'JFXScad'
mainClass project.mainClass
// deploy/info attributes
category = 'JFXScad'
copyright = 'Copyright (c) 2015 Michel Hoffer (info@michaelhoffer.de)'
description = 'JFXScad'
licenseType = 'Open Source'
vendor = 'Michael Hoffer'
installSystemWide = false
menu = true
shortcut = true
// // app icons
// icons {
// shortcut = ['shortcut-16.png', 'shortcut-32.png', 'shortcut-128.png', 'shortcut-256.png', 'shortcut-16@2x.png', 'shortcut-32@2x.png', 'shortcut-128@2x.png']
// volume = 'javafx-icon.png'
// setup = 'javafx-icon.png'
// }
// icons {
// shortcut = ['event-handler-icon-01.png']
// }
}
jfxDeploy {
// packaging = "installer"
packaging = "image"
verbose = true
}