forked from tus/tus-java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (59 loc) · 1.9 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
apply plugin: 'java'
apply plugin: 'maven'
group 'io.tus.java.client'
allprojects {
repositories {
mavenCentral()
}
}
// We compile the library using Java 1.6 compatibility
// in order to ensure interoperability with older Android platforms.
sourceCompatibility = 1.6
targetCompatibility = 1.6
dependencies {
compile 'org.jetbrains:annotations:13.0'
testCompile 'junit:junit:4.12'
testCompile 'org.mock-server:mockserver-netty:5.2.2'
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set("sources")
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set("javadoc")
from javadoc.destinationDir
}
task createPom {
doLast {
pom {
project {
groupId 'io.tus.java.client'
artifactId 'tus-java-client'
name 'tus-java-client'
version project.getProperties().get('pomVersion')
packaging 'pom'
description 'Java client for tus, the resumable file uploading protocol.'
url 'http://tus.io'
scm {
url 'https://github.com/tus/tus-java-client'
connection 'https://github.com/tus/tus-java-client'
developerConnection 'https://github.com/tus/tus-java-client'
}
developers {
developer {
id 'acconut'
name 'Marius Kleidl'
email '[email protected]'
}
}
inceptionYear '2015'
licenses {
license {
name 'The MIT License (MIT)'
url 'http://opensource.org/licenses/MIT'
}
}
}
}.writeTo("build/libs/pom.xml")
}
}