-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
52 lines (42 loc) · 961 Bytes
/
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
plugins {
id 'java-library'
id 'jacoco'
}
repositories {
jcenter()
mavenCentral()
}
sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6
version = '0.0.2-SNAPSHOT'
group = 'org.artrev.compareverifier'
dependencies {
testImplementation 'junit:junit:4.12'
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compileClasspath
options {
setMemberLevel JavadocMemberLevel.PUBLIC
links "https://docs.oracle.com/javase/8/docs/api/"
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
test.finalizedBy jacocoTestReport