-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (56 loc) 路 1.51 KB
/
Copy pathbuild.gradle
File metadata and controls
68 lines (56 loc) 路 1.51 KB
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
plugins {
id 'io.github.gradle-nexus.publish-plugin' version "2.0.0"
}
group = 'de.undercouch'
version = '3.5.2'
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
}
}
}
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
}
}
}