-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
88 lines (78 loc) · 2.15 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
84
85
86
87
88
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
plugins {
id 'com.github.hierynomus.license' version '0.13.1'
id 'io.codearte.nexus-staging' version '0.9.0'
}
ext {
slf4jVersion = '1.7.21'
jenaVersion = '3.6.0'
trellisVersion = '0.5.1'
commonsRdfVersion = '0.5.0'
camelVersion = '2.20.0'
jaxbVersion = '2.3.0'
jsonldVersion = "0.11.1"
logbackVersion = '1.2.3'
apiguardianVersion = '1.0.0'
junitVersion = '5.0.1'
junitPlatformVersion = '1.0.1'
jacocoVersion = '0.8.0'
checkstyleVersion = '8.8'
}
configure(allprojects) { project ->
group = 'de.ubleipzig'
repositories {
jcenter()
mavenCentral()
mavenLocal()
}
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven'
apply plugin: 'pmd'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'checkstyle'
apply plugin: 'com.github.hierynomus.license'
apply plugin: 'jacoco'
checkstyle {
configFile = rootProject.file('buildtools/src/main/resources/checkstyle/checkstyle.xml')
configProperties.checkstyleConfigDir = rootProject.file('buildtools/src/main/resources/checkstyle/')
toolVersion = checkstyleVersion
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
license {
include "**/*.java"
//noinspection GroovyAssignabilityCheck
header rootProject.file('buildtools/src/main/resources/license/HEADER.txt')
//noinspection GroovyAssignabilityCheck
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
}
}
configure(rootProject) {
license {
include "**/*.java"
//noinspection GroovyAssignabilityCheck
header rootProject.file('buildtools/src/main/resources/license/HEADER.txt')
//noinspection GroovyAssignabilityCheck
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
}
}