-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
49 lines (39 loc) · 969 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
apply plugin: 'java'
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.+'
implementation group: 'org.threadly', name: 'threadly', version: '7.+'
}
compileJava {
options.compilerArgs << "-Xlint:all" << "-Werror"
}
compileTestJava {
options.compilerArgs << "-Xlint:all" << "-Werror"
}
test {
getReports().getJunitXml().setDestination(file("$buildDir/test-results/xml"))
}
jar {
manifest {
attributes 'Implementation-Title': 'Threadly Examples'
}
from configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}