-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
44 lines (31 loc) · 968 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
version = '1.1'
project.buildDir = 'build'
apply plugin: 'java-library'
repositories {
jcenter()
}
dependencies {
implementation 'com.google.guava:guava:21.0'
testImplementation 'junit:junit:4.12'
}
task buildJar(type: Jar) {
println 'Building jar for ' + project.name + ' version ' + version
manifest {
attributes 'Name' : 'io/github/woodenbell/pprint',
'Sealed' : 'true',
'Specification-Title' : '"PrettyPrint Java Library"',
'Specification-Version' : '"' + version + '"',
'Specification-Vendor' : '"WoodenBell"',
'Implementation-Title' : '"io.github.woodenbell.pprint"',
'Implementation-Version' : '"build2"',
'Implementation-Vendor' : '"WoodenBell"'
}
from 'bin'
include 'io/github/woodenbell/pprint/*.class'
destinationDir = file(project.buildDir)
}
task genJavadoc(type: Javadoc) {
println 'Generating the javadoc documentation for ' + project.name
source = sourceSets.main.allJava
}
buildJar.dependsOn genJavadoc