Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
62 lines (51 loc) · 1.5 KB
/
Copy pathbuild.gradle
File metadata and controls
62 lines (51 loc) · 1.5 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
sourceCompatibility = 1.7
archivesBaseName = "signal-service-java"
version = "2.4.7"
group = "org.whispersystems"
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile 'com.google.protobuf:protobuf-java:2.5.0'
compile 'com.googlecode.libphonenumber:libphonenumber:8.0.0'
compile 'com.fasterxml.jackson.core:jackson-databind:2.5.0'
compile "org.whispersystems:signal-protocol-java:2.4.0"
compile 'com.squareup.okhttp3:okhttp:3.5.0'
compile 'org.apache.httpcomponents:httpclient:4.4'
testCompile 'junit:junit:3.8.2'
testCompile 'org.assertj:assertj-core:1.7.1'
}
tasks.whenTaskAdded { task ->
if (task.name.equals("lint")) {
task.enabled = false
}
}
signing {
required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
task installArchives(type: Upload) {
description "Installs the artifacts to the local Maven repository."
configuration = configurations['archives']
repositories {
mavenDeployer {
repository url: "file://${System.properties['user.home']}/.m2/repository"
}
}
}
task packageJavadoc(type: Jar, dependsOn: 'javadoc') {
from javadoc.destinationDir
classifier = 'javadoc'
}
task packageSources(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives packageJavadoc
archives packageSources
}