-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
70 lines (58 loc) · 1.64 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
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'kanari' at '7/24/16 3:37 PM' with Gradle 2.14.1
*
* This generated file contains a commented-out sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/2.14.1/userguide/tutorial_java_projects.html
*/
apply plugin: 'java'
apply plugin: 'application'
repositories {
mavenCentral()
jcenter()
maven {
url "https://oss.sonatype.org/content/groups/public"
}
}
dependencies {
compile 'com.jfoenix:jfoenix:0.0.0-SNAPSHOT'
compile 'org.javafxdata:datafx-flow:8.0b5'
compile 'de.jensd:fontawesomefx-materialicons:2.2.0'
}
mainClassName = "Main"
sourceSets {
main {
java {
srcDir 'src/reversi'
}
resources {
srcDir 'src/resources'
}
}
}
version = '1.0'
jar {
manifest {
attributes 'Implementation-Title': 'Reversi Duel',
'Implementation-Version': version,
'Main-Class': "$mainClassName"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task runApp(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'Main'
args 'JVMOptionsPassed'
jvmArgs '-Djava.net.preferIPv4Stack=true'
}
task copyJar(type: Copy, dependsOn: jar) {
from jar
into rootDir.absolutePath
}
task fixJarBuild(type: Exec, dependsOn: copyJar) {
commandLine './fix-jar-build.sh', 'ReversiDuel-' + version + '.jar'
}
task buildJar(dependsOn: [clean, jar, copyJar, fixJarBuild])