-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
102 lines (89 loc) · 3.35 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
buildscript {
ext.kotlin_version = "1.3.72"
ext.tornadofx_version = "1.7.17"
ext.junit_version = "5.6.2"
ext.smack_version = '3.2.1'
ext.testfx_version = "4.0.16-alpha"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.junit.platform:junit-platform-gradle-plugin:1.2.0"
}
}
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
id 'application'
id "org.openjfx.javafxplugin" version "0.0.8"
}
apply plugin: "kotlin"
apply plugin: "application"
apply plugin: "org.junit.platform.gradle.plugin"
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
compile "org.igniterealtime.smack:smack:$smack_version"
compile "org.igniterealtime.smack:smackx:$smack_version"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "no.tornado:tornadofx:$tornadofx_version"
testCompile "org.testfx:testfx-junit5:$testfx_version"
testCompile "org.junit.jupiter:junit-jupiter-api:$junit_version"
testCompile group: 'io.mockk', name: 'mockk', version: '1.10.0'
testCompile "org.assertj:assertj-core:3.11.1"
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junit_version"
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.6.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.2")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.6.2")
testCompile group: 'org.hamcrest', name: 'hamcrest', version: '2.2'
testCompile group: 'com.danhaywood.java', name: 'danhaywood-java-assertjext', version: '0.1.0'
testCompile group: 'commons-io', name: 'commons-io', version: '2.7'
}
mainClassName = "sniper.app.SniperApp"
jar {
manifest {
attributes(
"Class-Path": configurations.compile.collect { it.getName() }.join(" "),
"Main-Class": mainClassName
)
}
from(configurations.compile.collect { entry -> zipTree(entry) }) {
exclude "META-INF/MANIFEST.MF"
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
}
compileKotlin {
kotlinOptions.jvmTarget = "13"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "13"
}
javafx {
version = "11.0.2"
modules = ['javafx.controls', 'javafx.graphics', 'javafx.base', 'javafx.fxml']
}
run {
args = ["--hostname=localhost",
"--sniper-id=sniper",
"--sniper-password=sniper",
"--items=item-54321,item-65432"]
applicationDefaultJvmArgs = ['--add-exports=javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED',
'--add-exports=javafx.graphics/com.sun.javafx.iio.common=ALL-UNNAMED',
'--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
'--add-exports=javafx.graphics/com.sun.glass.ui=ALL-UNNAMED',
]
jvmArgs = ['--add-exports=javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED',
'--add-exports=javafx.graphics/com.sun.javafx.iio.common=ALL-UNNAMED',
'--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
'--add-exports=javafx.graphics/com.sun.glass.ui=ALL-UNNAMED',
]
}