-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.gradle
65 lines (53 loc) · 1.31 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
plugins {
id 'io.github.gradle-nexus.publish-plugin' version "2.0.0"
}
group = 'de.undercouch'
version = '3.1.0'
nexusPublishing {
repositories {
sonatype()
}
}
subprojects {
apply plugin: 'jacoco'
apply plugin: 'java'
group = rootProject.group
version = rootProject.version
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/groups/public'
}
}
dependencies {
testImplementation 'junit:junit:4.13.2'
}
// configure javadoc
javadoc {
// exclude internal packages
exclude '**/internal/**'
// link to Java 11 documentation
options.author true
options.links 'https://docs.oracle.com/en/java/javase/11/docs/api/'
options.source '11' // Java version
}
// package javadoc and sources
java {
withJavadocJar()
withSourcesJar()
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs << '-Xlint:unchecked'
options.deprecation = true
}
jacocoTestReport {
reports {
xml.required = true
html.required = true
}
}
}