forked from java-diff-utils/java-diff-utils-jycr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
48 lines (40 loc) · 1.2 KB
/
build.gradle
File metadata and controls
48 lines (40 loc) · 1.2 KB
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
apply plugin: 'java'
apply plugin: 'com.novoda.bintray-release'
sourceCompatibility = 1.7
targetCompatibility = 1.7
dependencies {
compile group: 'com.google.code.findbugs', name: 'jsr305', version:'3.0.0'
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version:'1.3'
testCompile group: 'junit', name: 'junit', version:'4.12'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc {
failOnError = false
}
if (JavaVersion.current().isJava8Compatible()) {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
publish {
bintrayUser = 'bkromhout'
bintrayKey = BINTRAY_KEY
userOrg = 'bkromhout'
groupId = 'com.github.bkromhout'
artifactId = 'java-diff-utils'
version = '2.1.1'
desc = 'The java-diff-utils library is for computing diffs, applying patches, generation side-by-side view in Java.'
website = 'https://github.com/bkromhout/java-diff-utils'
licences = ['Apache-2.0']
}