-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
80 lines (76 loc) · 2.17 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
plugins {
id 'java'
id 'checkstyle'
id 'pmd'
id 'jacoco'
id 'com.github.johnrengelman.shadow' version '8.1.1'
// id 'com.github.spotbugs' version '6.0.27'
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.apache.jena:jena-arq:4.7.0'
implementation 'commons-cli:commons-cli:1.9.0'
implementation 'org.jline:jline:3.28.0'
implementation 'org.yaml:snakeyaml:2.3'
implementation 'org.apache.groovy:groovy:4.0.24'
implementation 'org.slf4j:slf4j-log4j12:2.0.16'
implementation 'org.thymeleaf:thymeleaf:3.1.3.RELEASE'
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:3.3.0'
implementation 'org.reflections:reflections:0.10.2'
implementation 'com.github.albfernandez:juniversalchardet:2.3.0'
implementation 'org.eclipse.lsp4j:org.eclipse.lsp4j:0.23.1'
implementation 'org.topbraid:shacl:1.3.0'
compileOnly 'net.jcip:jcip-annotations:1.0'
compileOnly 'com.github.spotbugs:spotbugs:4.8.6'
compileOnly 'com.github.spotbugs:spotbugs-annotations:4.8.6'
testImplementation 'junit:junit:4.+'
testImplementation 'org.hamcrest:hamcrest-all:1.3'
testImplementation 'org.mockito:mockito-core:3.1.0'
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
jar {
manifest {
attributes 'Main-Class': 'com.github.imas.rdflint.RdfLint'
}
}
artifacts {
archives shadowJar
}
checkstyle {
toolVersion '8.23'
}
pmd {
toolVersion '6.22.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.7
}
}
}
}
checkstyleMain {
reports {
xml.required = false
html.required = true
}
}
build.dependsOn jacocoTestReport, jacocoTestCoverageVerification
jacocoTestCoverageVerification.mustRunAfter jacocoTestReport