forked from MinesJTK/jtk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (62 loc) · 1.28 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
description = 'Mines Java Toolkit'
apply plugin: 'java-library-distribution'
apply plugin: 'maven'
apply plugin: 'jacoco'
apply plugin: 'signing'
jar.baseName = 'edu-mines-jtk'
// tag::dependencies[]
dependencies {
compile 'org.jogamp.jogl:jogl-all-main:2.3.2',
'org.jogamp.gluegen:gluegen-rt-main:2.3.2',
'com.googlecode.netlib-java:netlib-java:0.9.3'
testCompile 'org.testng:testng:6.8'
}
// end::dependencies[]
// tag::distributions[]
distributions {
main {
baseName = 'edu-mines-jtk-all'
}
}
// end::distributions[]
// tag::test[]
test {
useTestNG() {
options {
parallel="classes"
threadCount=5
}
}
}
// end::test[]
// tag::javadoc[]
javadoc {
title = project.description
}
// end::javadoc[]
// tag::jacocoTestReport[]
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
check.dependsOn jacocoTestReport
// end::jacocoTestReport[]
// tag::javadocJar[]
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from tasks.javadoc.destinationDir
}
// end::javadocJar[]
// tag::sourcesJar[]
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
// end::sourcesJar[]
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}