-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
133 lines (114 loc) · 3.59 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.1.1'
}
}
plugins {
id "com.zyxist.chainsaw" version "0.3.1"
id 'net.researchgate.release' version '2.6.0'
id 'com.github.hierynomus.license' version '0.14.0'
id 'io.codearte.nexus-staging' version '0.9.0'
}
ext {
/* Dependencies */
camelVersion = '2.21.0'
commonsRdfVersion = '0.5.0'
commonsRdfJenaVersion = '1.0.0-SNAPSHOT'
iiifVocabularyVersion = '0.1.1'
jacksonVersion = '2.9.5'
jsonldVersion = "0.12.0"
slf4jVersion = '1.7.25'
trellisClientVersion = '0.2.0-SNAPSHOT'
/* Testing */
activationApiVersion = '1.2.0'
junitVersion = '5.1.1'
activationVersion = '1.1.1'
logbackVersion = '1.2.3'
apiguardianVersion = '1.0.0'
jacocoVersion = '0.8.1'
checkstyleVersion = '8.8'
}
configure(allprojects) { project ->
ext {
name = 'Elastic Manifests'
description = 'A Camel LDP implementation'
vendor = 'pandorasystems'
homepage = 'http://www.trellisldp.org'
url = 'http://www.trellisldp.org/apidocs'
license = 'Apache 2'
inceptionYear = '2017'
}
group = 'de.ubleipzig'
repositories {
jcenter()
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
}
subprojects {
apply plugin: 'com.zyxist.chainsaw'
apply plugin: 'maven'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'checkstyle'
apply plugin: 'com.github.hierynomus.license'
apply plugin: 'org.junit.platform.gradle.plugin'
sourceCompatibility = 1.10
targetCompatibility = 1.10
dependencies {
testCompile("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testRuntime("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs.add("-Xlint:unchecked")
options.compilerArgs.add("-Xlint:deprecation")
options.compilerArgs.addAll(["--add-modules", "jdk.incubator.httpclient", "--add-modules", "java.xml.bind", "--add-modules", "java.naming", "--add-modules", "java.sql"])
}
}
checkstyle {
configFile = rootProject.file('buildtools/src/main/resources/checkstyle/checkstyle.xml')
configProperties.checkstyleConfigDir = rootProject.file('buildtools/src/main/resources/checkstyle/')
toolVersion = checkstyleVersion
}
license {
include "**/*.java"
//noinspection GroovyAssignabilityCheck
header rootProject.file('buildtools/src/main/resources/license/HEADER.txt')
//noinspection GroovyAssignabilityCheck
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
}
task processConfig(type: Copy) {
from('src/main/cfg') {
include '**/*.cfg'
}
into 'build/cfg/main'
}
classes {
classes.dependsOn processConfig
}
junitPlatformTest.jvmArgs("--add-modules", "jdk.incubator.httpclient")
}
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'
}
}
}