forked from imas/rdflint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
83 lines (78 loc) · 2.09 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
import com.github.spotbugs.SpotBugsTask
plugins {
id 'java'
id 'checkstyle'
id 'pmd'
id 'jacoco'
id 'com.github.johnrengelman.shadow' version '4.0.3'
id "com.github.spotbugs" version "3.0.0"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile 'org.apache.jena:jena-arq:3.9.0'
compile 'commons-cli:commons-cli:1.4'
compile 'org.jline:jline:3.9.0'
compile 'org.yaml:snakeyaml:1.23'
compile 'org.codehaus.groovy:groovy:3.0.0-rc-3'
compile 'org.slf4j:slf4j-log4j12:1.7.25'
compile 'org.thymeleaf:thymeleaf:3.0.11.RELEASE'
compile 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:2.2.2'
compile 'org.reflections:reflections:0.9.11'
compile 'com.github.albfernandez:juniversalchardet:2.3.0'
compile 'org.eclipse.lsp4j:org.eclipse.lsp4j:0.8.1'
compile group: 'org.topbraid', name: 'shacl', version: '1.3.0'
compileOnly 'net.jcip:jcip-annotations:1.0'
compileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.12'
testCompile 'junit:junit:4.+'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.mockito:mockito-core:3.1.0'
}
jar {
manifest {
attributes 'Main-Class': 'com.github.imas.rdflint.RdfLint'
}
}
artifacts {
archives shadowJar
}
checkstyle {
toolVersion '8.16'
}
pmd {
toolVersion '6.10.0'
sourceSets = [sourceSets.main]
ruleSets = [
"category/java/bestpractices.xml",
"category/java/multithreading.xml",
"category/java/performance.xml",
"category/java/security.xml"
]
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.8
}
}
}
}
tasks.withType(Checkstyle) {
reports {
xml.enabled = false
html.enabled = true
}
}
tasks.withType(SpotBugsTask) {
reports {
xml.enabled = false
html.enabled = true
}
}
build.dependsOn jacocoTestReport, jacocoTestCoverageVerification
jacocoTestCoverageVerification.mustRunAfter jacocoTestReport