-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
77 lines (68 loc) · 1.67 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
import com.github.spotbugs.snom.SpotBugsTask
plugins {
id "java"
id "eclipse"
id("com.github.spotbugs") version "4.7.2"
id "org.openstreetmap.josm" version "0.7.0"
}
sourceCompatibility = 1.8
def versions = [
junit: "5.8.2",
]
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:${versions.junit}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${versions.junit}")
testImplementation("org.junit.vintage:junit-vintage-engine:${versions.junit}")
testImplementation("org.openstreetmap.josm:josm-unittest:"){changing=true}
testImplementation("com.github.tomakehurst:wiremock-jre8:2.32.0")
testImplementation("org.awaitility:awaitility:4.2.0")
testImplementation("com.github.spotbugs:spotbugs-annotations:4.6.0")
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
packIntoJar("org.opensourcebim:BuildingSMARTLibrary:1.0.9")
}
josm.pluginName = "indoorhelper"
project.version = "1.2.3"
sourceSets {
main {
java {
srcDirs = ['src']
}
resources {
srcDirs = ["$projectDir"]
include 'data/**'
include 'images/**'
include 'resources/**'
include 'README.md'
}
}
test {
java {
srcDirs = ["test/unit"]
}
resources {
srcDirs = ["test/data"]
}
}
}
tasks.withType(JavaCompile) {
options.compilerArgs += [
"-Xlint:all",
"-Xlint:-serial",
]
}
// Spotbugs config
spotbugs {
toolVersion.set(versions.spotbugs)
ignoreFailures.set(true)
effort = "max"
reportLevel = "low"
}
tasks.withType(SpotBugsTask) {
reports {
html.enabled = true
}
}