-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
build.gradle
73 lines (60 loc) · 2.02 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "io.freefair.gradle:lombok-plugin:$gradlePluginLombokVersion"
classpath "com.github.ben-manes:gradle-versions-plugin:$gradlePluginVersionsVersion"
classpath "gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:$licenseGradlePluginVersion"
}
}
allprojects {
group = "$groupPackage"
version = "$projectVersion"
}
subprojects {
apply plugin: "signing"
apply plugin: "java"
apply plugin: "jacoco"
apply plugin: "maven-publish"
apply plugin: "com.github.ben-manes.versions"
apply plugin: "com.github.hierynomus.license"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compileOnly("org.projectlombok:lombok:$lombokVersion")
annotationProcessor("org.projectlombok:lombok:$lombokVersion")
testImplementation("de.alpharogroup:test-objects:$testObjectsVersion")
testImplementation("de.alpharogroup:silly-collections:$sillyCollectionsVersion")
testImplementation("de.alpharogroup:silly-beans:$sillyBeansVersion")
testImplementation("de.alpharogroup:jobj-contract-verifier:$jobjContractVerifierVersion")
testImplementation("org.meanbean:meanbean:$meanbeanVersion")
testImplementation("org.testng:testng:$testngVersion")
}
// workhack for license issue #76
gradle.startParameter.excludedTaskNames += "licenseMain"
gradle.startParameter.excludedTaskNames += "licenseTest"
sourceCompatibility = "$projectSourceCompatibility"
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption("html5", true)
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
test {
useTestNG()
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
check.dependsOn jacocoTestReport
}