This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
forked from jvpichowski/rocketsound-groundstation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (64 loc) · 2.21 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
plugins {
id 'java'
id 'maven'
id 'application'
}
group 'de.jvpichowski.rocketsound'
version '1.0-SNAPSHOT'
sourceCompatibility = gradle.sourceCompatibility
targetCompatibility = gradle.targetCompatibility
application {
applicationDefaultJvmArgs = ['--enable-preview']
mainClassName = 'org.telestion.application.Telestion'
}
repositories {
mavenCentral()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/TelestionTeam/telestion/")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
dependencies {
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.12.1'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.1'
implementation "io.vertx:vertx-core:4.0.2"
compile 'io.github.telestionteam:telestion-api:0.0.14'
compile 'io.github.telestionteam:telestion-app:0.0.14'
compile 'io.github.telestionteam:telestion-services:0.0.14'
compile 'io.github.telestionteam:telestion-examples:0.0.14'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
test {
useJUnitPlatform()
}
tasks.withType(JavaExec) {
systemProperties System.properties
systemProperties "hazelcast.logging.type":"slf4j"
//enable modules for hazelcast
jvmArgs += ["--add-modules", "java.se",
"--add-exports", "java.base/jdk.internal.ref=ALL-UNNAMED",
"--add-opens", "java.base/java.lang=ALL-UNNAMED",
"--add-opens", "java.base/java.nio=ALL-UNNAMED",
"--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED",
"--add-opens", "java.management/sun.management=ALL-UNNAMED",
"--add-opens", "jdk.management/com.sun.management.internal=ALL-UNNAMED"]
}
//enable preview features
tasks.withType(JavaCompile) {
options.compilerArgs += "--enable-preview"
}
tasks.withType(Test) {
jvmArgs += "--enable-preview"
ignoreFailures = true
reports {
junitXml.enabled = true
}
}
tasks.withType(JavaExec) {
jvmArgs += '--enable-preview'
}