-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (48 loc) · 1.57 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
plugins{
id "com.github.cr0.macappbundle" version "3.1.0"
}
sourceCompatibility = 1.6
version = "build_"+new Date().format('yyyy-MM-dd_HH-mm-ss')
jar{
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest{
attributes 'Main-Class' : 'org.atom.launcher.ui.Launcher'
}
}
configurations {
sshAntTask
}
macAppBundle {
agent = false
appName = "Launcher"
archiveName = "Launcher"
mainClassName = "org.atom.launcher.ui.Launcher"
icon = "src/main/resources/icons/launcher.icns"
javaProperties.put("file.encoding", "utf-8")
javaProperties.put("apple.laf.useScreenMenuBar", "true")
javaXProperties.add("ms128m")
javaXProperties.add("mx128m")
bundleExtras.put("NSHighResolutionCapable", "true")
version = project.version
shortVersion = project.version
bundleJRE = false
bundleExecutable = "Launcher"
bundleIdentifier = "com.atom.launcher"
bundleCopyright = "Abey Tom"
appCategory = "atom.tools"
}
repositories{
mavenCentral()
}
dependencies{
compile group:'org.jdesktop', name:'appframework', version:'1.0.3'
compile group:'org.jdesktop', name:'swing-worker', version:'1.1'
compile group:'org.swinglabs', name:'swing-layout', version:'1.0.3'
compile group:'log4j', name:'log4j', version:'1.2.17'
testCompile group:'junit', name:'junit', version:'4.8+'
}
task zipApp(dependsOn:createApp, type:Zip){
project.ext.archiveName = "$macAppBundle.appName-$project.version"+".app.zip"
archiveName = project.ext.archiveName
from "$buildDir/macApp"
}