aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorMoxie Marlinspike <moxie@thoughtcrime.org>2015-01-08 13:48:49 -0800
committerMoxie Marlinspike <moxie@thoughtcrime.org>2015-01-08 14:09:01 -0800
commit6445ea5f13850f42c3952bd06a2369317683ed88 (patch)
treef2bb37c8cf4710ff6a6a37a3e7e702c5a21ca504 /build.gradle
parenta4d8f7f6a4c4e9e89db35f299e558dceee2362a1 (diff)
Break project up into Java and Android build/test.
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle109
1 files changed, 9 insertions, 100 deletions
diff --git a/build.gradle b/build.gradle
index bb67b6bb..0aa148e3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,110 +1,19 @@
buildscript {
- repositories {
- mavenCentral()
- }
-
dependencies {
- 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'
-
-archivesBaseName = "axolotl-android"
-version = "1.0.0"
-group = "org.whispersystems"
-
-repositories {
- mavenCentral()
-}
-
-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'
-
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_7
- targetCompatibility JavaVersion.VERSION_1_7
- }
-
- android {
- sourceSets {
- main {
- jniLibs.srcDirs = ['libs']
- }
- }
- }
-
- libraryVariants.all { variant ->
- variant.outputs.each { output ->
- def outputFile = output.outputFile
- if (outputFile != null && outputFile.name.endsWith('.aar')) {
- def fileName = "${archivesBaseName}-${version}.aar"
- output.outputFile = new File(outputFile.parent, fileName)
- }
- }
- }
-}
-
-signing {
- required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
- sign configurations.archives
-}
-
-uploadArchives {
- configuration = configurations.archives
- repositories.mavenDeployer {
- beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
+subprojects {
+ apply plugin: 'witness'
- 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'
- }
- }
- }
- }
-}
+ ext.version_number = "1.0.1"
+ ext.group_info = "org.whispersystems"
+ ext.curve25519_version = "0.1.3"
-tasks.whenTaskAdded { task ->
- if (task.name.equals("lint")) {
- task.enabled = false
+ dependencyVerification {
+ verify = [
+ 'com.google.protobuf:protobuf-java:e0c1c64575c005601725e7c6a02cebf9e1285e888f756b2a1d73ffa8d725cc74',
+ ]
}
}