-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
60 lines (51 loc) · 1.19 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
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "edu.sc.seis:macAppBundle:2.3.0"
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.3'
}
}
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: "edu.sc.seis.macAppBundle"
apply plugin: 'application'
apply plugin: 'java'
mainClassName = "plutoplate.PlutoplateExec"
macAppBundle {
mainClassName = "plutoplate.PlutoplateExec"
runtimeConfigurationName = 'shadow'
jarTask = 'shadowJar'
icon = "pluto.icns"
bundleJRE = true
certIdentity = "9NRQTQQ9YN"
bundleExecutable = "${->project.name}"
javaProperties.put("java.library.path", "/Library/Java/Extensions")
dmgName = "Plutoplate"
appName = "Plutoplate"
volumeName = "Plutoplate"
backgroundImage = "background.png"
}
repositories{
jcenter()
}
tasks.withType(JavaCompile) {
sourceCompatibility='1.8'
}
sourceSets {
main {
java {
srcDirs = ['src/plutoplate']
}
resources {
srcDirs = ["src/"]
includes = ["**/*.png", "**/*.jpg"]
}
}
}
dependencies {
compile fileTree(dir: 'lib', include: ['*.jar'])
}