-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
118 lines (96 loc) · 3.33 KB
/
build.gradle
File metadata and controls
118 lines (96 loc) · 3.33 KB
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
112
113
114
115
116
117
118
/*
* This build file was auto generated by running the Gradle 'init' task by 'Saravana Kumar M' at '11/18/16 7:56 PM' with Gradle 3.1
* For more details take a look at the Java Quickstart chapter in the Gradle user guide available at https://docs.gradle.org/3.1/userguide/tutorial_java_projects.html
*/
//ant.importBuild 'exe4j.xml'
//Apply the java plugin to add support for Java related tasks
apply plugin: 'java'
//Apply the javafx plugin to add support for JavaFX related tasks
apply from: "http://dl.bintray.com/content/shemnon/javafx-gradle/8.1.1/javafx.plugin"
sourceCompatibility = 1.8
targetCompatibility = 1.8
//In this section you declare where to find the dependencies of your project
repositories
{
//Use 'jcenter' for resolving your dependencies. You can declare any Maven/Ivy/file repository here.
jcenter()
mavenCentral()
//maven { url "http://maven.objectstyle.org/nexus/content/repositories/cayenne-unofficial/" }
}
//In this section you declare the dependencies for your production and test code
dependencies
{
//testCompile 'junit:junit:4.4'
compile 'javax.inject:javax.inject:1'
compile 'org.controlsfx:controlsfx:8.40.12'
//log4j dependency
compile 'org.apache.logging.log4j:log4j-api:2.5'
compile 'org.apache.logging.log4j:log4j-core:2.5'
//jtds dependency
compile 'net.sourceforge.jtds:jtds:1.3.1'
//Google Guava dependency
compile 'com.google.guava:guava:19.0'
//Apache POI dependency
compile 'org.apache.poi:poi:3.15'
//Apache POI OOXML dependency
compile 'org.apache.poi:poi-ooxml:3.15'
//Apache Cayenne
//compile 'org.apache.cayenne:cayenne-server:4.0.M4.ce40fc0'
compile 'org.apache.cayenne:cayenne-server:4.0.M4'
}
jar
{
from('src/main/java')
{
include '**/*.css'
include '**/*.fxml'
include '**/*.properties'
}
}
javafx
{
profiles
{
windows
{
//id = 'c533f663-1efd-489f-b910-4c7ec20c7fd0'
category = 'Exchange Monitor'
//Points to JDK and its JavaFX libraries, also declares target runtime JDK
javaRuntime = 'C:/Program Files/Java/jdk1.8.0_112'
}
macosx { }
linux { }
}
//Application name and ID presented by target OS
appID 'ExchangeMonitorAppID'
appName 'Exchange Monitor Application'
description = "Exchange Monitor. This application is used to monitor the deals coming from exchanges like NYMEX, ICE, etc."
//Main class of application
mainClass 'com.tc.app.exchangemonitor.main.ExchangeMonitorApplicationMain'
//JVM arguments, system properties, application command line arguments
jvmArgs = ['-XX:+AggressiveOpts', '-XX:CompileThreshold=1']
systemProperties = ['prism.disableRegionCaching':'true']
arguments = ['-l', '--fast', 'Test Args']
/*
//Keystore credentials for signing JAR
//Generate key: keytool -genkey -alias release -keyalg RSA -keystore keystore.jks -keysize 2048
releaseKey
{
alias = 'release'
keyPass = getProjectProperty('keyStorePassword')
keyStore = file("${System.properties['user.home']}/keystore/keystore.jks")
storePass = getProjectProperty('storePassword')
}
signingMode 'release'
//compileJava.options.fork=true
//compileJava.options.forkOptions.executable="C:\\Program Files\\Java\\jdk1.8.0_112"
*/
//app icons
icons
{
}
}
String getProjectProperty(String propertyName)
{
project.hasProperty(propertyName) ? project.property(propertyName) : null
}