-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (66 loc) · 1.99 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
apply from: 'javafx.plugin'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
sourceCompatibility = '1.8'
def mainClassName = "edu.csci.hw1.Calculator"
def mainAppName = "Simple Java Calculator"
version = "1.0"
jfxJar.enabled = false;
jfxCopyLibs.enabled = false;
dependencies {
testCompile 'junit:junit:4.11'
}
repositories {
mavenCentral()
}
task wrapper(type: Wrapper){
gradleVersion = '2.0'
}
javafx {
appID '{C15A6650-A798-479A-B8F2-F83C6725BAB7}'
mainClass = mainClassName
appName = mainAppName
jvmArgs = ['-XX:+AggressiveOpts', '-XX:CompileThreshold=1']
arguments = ['-1', '--fast', '-Xlint:deprecation']
systemProperties = [ 'prism.disableRegionCaching':'true' ]
arguments = ['1AC', '1NC', '2AC', '2NC', '1NR', '1AR', '2NR', '2AR']
embedLauncher = true // caution: class-path not set and is overwritten if set to false
// applet and webstart stuff
width = 800
height = 600
embedJNLP = false
icons {
shortcut = ['icons/icon32.png', 'icons/icon64.png', 'icons/icon128.png']
}
// deplpy/info attributes
category = 'production'
description = 'This is a homework project for csci 3415'
licenseType = '3 clause BSD'
vendor = 'William Daniels'
// deploy/preferences attributes
installSystemWide = true
menu = true
shortcut = true
// app icons
}
jar{
from {configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest{
attributes("Main-Class": mainClassName);
}
}
task copyFinalZip (type: Copy){
from ('build/distributions'){
include '*.zip'
}
into 'Zipped_Builds/'
}
task zipEverything(type: Zip){
baseName = mainAppName
from 'build/distributions/bundles/'
}
build.dependsOn ( assemble, zipEverything, copyFinalZip)
task zipEverything.mustRunAfter ( assemble)
task copyFinalZip.mustRunAfter (zipEverything)
task all (dependsOn: [build])