This repository has been archived by the owner on Mar 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
74 lines (58 loc) · 1.58 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
plugins {
id 'java'
id 'idea'
id 'maven'
id "com.jfrog.bintray" version "1.0"
}
assert gradle.gradleVersion == '2.14'
sourceCompatibility = '1.8'
group = 'io.pivotal.labs'
version = '0.0.1'
description = file('README.adoc').readLines()[0]
ext.vendor = 'Pivotal Labs'
ext.url = 'https://github.com/pivotal/cf-env'
ext.license = 'BSD 2-Clause'
apply from: 'release.gradle'
configurations {
doclet
}
repositories {
jcenter()
}
dependencies {
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.4.5'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
doclet group: 'org.asciidoctor', name: 'asciidoclet', version: '1.5.4'
}
javadoc.options {
docletpath = configurations.doclet.files.asType(List)
doclet = 'org.asciidoctor.Asciidoclet'
}
jar {
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Implementation-Vendor': project.vendor,
'Implementation-Vendor-Id': project.group,
'Implementation-URL': project.url
)
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourceJar
archives javadocJar
}
idea.module {
outputDir = file('.idea/classes/main')
testOutputDir = file('.idea/classes/test')
}