-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
109 lines (93 loc) · 2.85 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
apply from: "javafx.plugin"
apply plugin: "eclipse"
repositories {
mavenCentral()
mavenLocal()
jcenter()
}
dependencies {
compile project(":FERemoteLib")
}
// Configure packaging of required jars with jar-in-jar-loader from eclipse
jar {
//dependsOn ":FERemoteLib:build"
manifest {
attributes("Rsrc-Main-Class": "com.forgeessentials.remote.client.gui.Main")
attributes("Rsrc-Class-Path": "./ gson-2.3.1.jar")
}
// Include generally all dependencies
from configurations.compile.collect { it }
// Include jar-in-jar-loader
from zipTree("jar-in-jar-loader.zip")
// Include FERemoteLib as class files and not as jar
from zipTree(new File(project(":FERemoteLib").libsDir, "FERemoteLib.jar"))
exclude("FERemoteLib.jar")
// Exclude JavaFx dependency
exclude("jfxrt.jar")
}
javafx.mainClass "org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader"
// Clean libs directory
task cleanTempDir(type: Delete, dependsOn: jar) {
delete fileTree(project.libsDir).matching {
exclude "FERemoteClient.jar", "servers.json"
}
}
build.dependsOn cleanTempDir
// Configure JavaFx attributes
javafx {
appID "FERemoteClient"
appName "ForgeEssentials Remote Client"
category = "Games"
description = "Client for connecting to Minecraft servers with the ForgeEssentials remote API"
vendor = "ForgeEssentials"
// copyright = "Copyright (c) 2015 ForgeEssentials"
// licenseType = "Apache 2.0"
/*
jvmArgs = ["-XX:+AggressiveOpts", "-XX:CompileThreshold=1"]
systemProperties = [ "prism.disableRegionCaching":"true" ]
arguments = ["-l", "--fast"]
embedLauncher = false
// deploy/info attributes
installSystemWide = true
menu = true
shortcut = true
// app icons
icons {
shortcut = ["shortcut-16.png", "shortcut-32.png", "shortcut-128.png", "shortcut-256.png", "[email protected]", "[email protected]", "[email protected]"]
volume = "javafx-icon.png"
setup = "javafx-icon.png"
}
// applet and webstart stuff
debugKey {
alias = "debugKey"
//keyPass = "password" // provide via command line
keyStore = file("~/keys/debug.jks")
//storePass = "password" // provide via command line
}
releaseKey {
alias = "production"
//keyPass = "password" // provide via command line
keyStore = file("/Volumes/ProdThumbDrive/production.jks")
//storePass = "password" // provide via command line
}
signingMode "release"
width = 800
height = 600
embedJNLP = false
codebase = "http://example.com/bogus/JNLP/Codebase"
// arbitrary jnlp icons
icon {
href = "src/main/resources/javafx-icon.png"
kind = "splash"
width = 128
height = 128
}
icon {
href = "[email protected]"
kind = "selected"
width = 16
height = 16
scale = 1
}
*/
}