-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (40 loc) · 1.53 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
/***************************************
* Use JavaFX Gradle plugin
*
* See: http://speling.shemnon.com/blog/2013/05/18/javafx-gradle-plugin-0-dot-3-0-released/
***************************************/
apply from: 'https://repository-javafx-gradle-plugin.forge.cloudbees.com/snapshot/javafx.plugin'
/***************************************
* Set Maven coordinates and build vars
***************************************/
group = 'io.dahuapp'
archivesBaseName = 'dahuapp'
version = '0.1-SNAPSHOT'
sourceCompatibility = '1.7'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
/***************************************
* Check environment
***************************************/
if(! System.env['JAVAFX_HOME'] ) {
println """Please set environment variable JAVAFX_HOME
to the directory that contains /rt/lib/jfxrt.jar"""
System.exit 1
}
// environment is ok
/***************************************
* The build script proper
***************************************/
repositories {
mavenCentral()
// You may define additional repositories, or even remove "mavenCentral()".
// Read more about repositories here:
// http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:repositories
}
dependencies {
compile fileTree(dir: 'lib', includes: ['*.jar'])
runtime fileTree(dir: 'lib', includes: ['*.jar'])
testCompile group: 'junit', name: 'junit', version: '4.10'
}
javafx {
mainClass = 'io.dahuapp.area51.nativehook.JavaFXNativeHookExample'
}