aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorMoxie Marlinspike <moxie@thoughtcrime.org>2014-11-24 13:12:03 -0800
committerMoxie Marlinspike <moxie@thoughtcrime.org>2014-12-08 16:02:37 -0800
commitbfbaf082b461dfa116ecc07a28d8d0d366bd312c (patch)
treeae552e4060e3428717179c9c4eb41f2b455e0ee4 /build.gradle
parent60800e155612bea797eed93c67046a23d26054cc (diff)
Add gradle wrapper
Diffstat (limited to '')
-rw-r--r--build.gradle59
1 files changed, 57 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle
index 2b623a3f..f5dbda9f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,11 +4,18 @@ buildscript {
}
dependencies {
- classpath 'com.android.tools.build:gradle:0.14.2'
+ classpath 'com.android.tools.build:gradle:1.0.0'
+ classpath files('libs/gradle-witness.jar')
}
}
apply plugin: 'com.android.library'
+apply plugin: 'witness'
+apply plugin: 'maven'
+apply plugin: 'signing'
+
+version = "1.0.0"
+group = "org.whispersystems"
repositories {
mavenCentral()
@@ -18,6 +25,12 @@ dependencies {
compile 'com.google.protobuf:protobuf-java:2.5.0'
}
+dependencyVerification {
+ verify = [
+ 'com.google.protobuf:protobuf-java:e0c1c64575c005601725e7c6a02cebf9e1285e888f756b2a1d73ffa8d725cc74',
+ ]
+}
+
android {
compileSdkVersion 21
buildToolsVersion '21.1.1'
@@ -34,11 +47,53 @@ android {
}
}
}
+}
+
+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-android'
+ packaging 'aar'
+ description 'Axolotl encryption library for Android'
+ 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'
+ }
+
+ licenses {
+ license {
+ name 'GPLv3'
+ url 'https://www.gnu.org/licenses/gpl-3.0.txt'
+ distribution 'repo'
+ }
+ }
+
+ developers {
+ developer {
+ name 'Moxie Marlinspike'
+ }
+ }
+ }
+ }
}
tasks.whenTaskAdded { task ->
if (task.name.equals("lint")) {
task.enabled = false
}
-} \ No newline at end of file
+}