-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
53 lines (46 loc) · 1.36 KB
/
build.gradle
File metadata and controls
53 lines (46 loc) · 1.36 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
plugins {
id "java-library"
id "com.github.johnrengelman.shadow" version "8.1.1"
id "io.github.intisy.online-gradle" version "1.7.2"
}
online {
autoUpdate = true
updateDelay = 3600
presets = [
"https://raw.githubusercontent.com/intisy/gradle-snippets/presets/default.preset:1.8",
"https://raw.githubusercontent.com/intisy/gradle-snippets/presets/publish.preset"
]
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
api "com.google.code.gson:gson:2.10.1"
api "org.apache.commons:commons-compress:1.24.0"
api "com.kohlschutter.junixsocket:junixsocket-core:2.9.0"
implementation "org.slf4j:slf4j-simple:2.0.7"
testImplementation "org.junit.jupiter:junit-jupiter:5.10.1"
}
test {
useJUnitPlatform()
onlyIf { gradle.startParameter.taskNames.any { it == 'test' || it == ':test' } }
}
task ciTest(type: Test) {
useJUnitPlatform {
includeTags 'unit'
}
description = 'Runs unit tests safe for CI (no Docker daemon required).'
group = 'verification'
}
task integrationTest(type: Test) {
useJUnitPlatform {
includeTags 'integration'
}
description = 'Runs integration tests that require a Docker daemon (local only).'
group = 'verification'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}