blob: 11834e6b7391a4e007462c96c33ecc04a7930627 (
plain)
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
75
76
77
78
79
80
81
82
83
|
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
sourceCompatibility = 1.7
archivesBaseName = "axolotl-java"
version = version_number
group = group_info
repositories {
mavenCentral()
mavenLocal()
}
sourceSets {
test {
java {
srcDirs = ['src/test/java/', project(':tests').file('src/main/java')]
}
}
}
dependencies {
compile "org.whispersystems:curve25519-java:${curve25519_version}"
compile 'com.google.protobuf:protobuf-java:2.5.0'
testCompile ('junit:junit:3.8.2')
}
test {
testLogging {
events 'passed'
showStandardStreams = true
}
include 'org/whispersystems/**'
}
signing {
required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
uploadArchives {
configuration = configurations.archives
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: sonatypeRepo) {
authentication(userName: whisperSonatypeUsername, password: whisperSonatypePassword)
}
pom.project {
name 'axolotl-java'
packaging 'jar'
description 'Axolotl library for Java'
url 'https://github.com/WhisperSystems/libaxolotl-android'
scm {
url 'scm:git@github.com:WhisperSystems/libaxolotl-android.git'
connection 'scm:git@github.com:WhisperSystems/libaxolotl-android.git'
developerConnection 'scm:git@github.com:WhisperSystems/libaxolotl-android.git'
}
developers {
developer {
name 'Moxie Marlinspike'
}
}
}
}
}
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"
}
}
}
|