-
-
Save ikocijan/dedee03ed584716f6cbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'android-library' | |
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.9.+' | |
} | |
} | |
apply plugin: 'maven' | |
apply plugin: 'signing' | |
version = "1.0.0" | |
group = "co.something" | |
repositories { | |
mavenCentral() | |
} | |
configurations { | |
archives { | |
extendsFrom configurations.default | |
} | |
} | |
signing { | |
required { has("release") && gradle.taskGraph.hasTask("uploadArchives") } | |
sign configurations.archives | |
} | |
android { | |
compileSdkVersion 19 | |
buildToolsVersion '19.0.3' | |
defaultConfig { | |
minSdkVersion 9 | |
targetSdkVersion 19 | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_7 | |
targetCompatibility JavaVersion.VERSION_1_7 | |
} | |
buildTypes { | |
release { | |
runProguard false | |
proguardFile 'proguard-rules.txt' | |
//proguardFile getDefaultProguardFile('proguard-android-optimize.txt') | |
} | |
} | |
} | |
uploadArchives { | |
configuration = configurations.archives | |
repositories.mavenDeployer { | |
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | |
repository(url: sonatypeRepo) { | |
authentication(userName: sonatypeUsername, | |
password: sonatypePassword) | |
} | |
pom.project { | |
name 'Name' | |
packaging 'aar' | |
description 'description' | |
url 'www.something.com' | |
scm { | |
url 'scm:git@bitbucket.org:myproject.git' | |
connection 'scm:git@bitbucket.org:org:myproject.git' | |
developerConnection 'scm:git@bitbucket.org:org:myproject.git' | |
} | |
licenses { | |
license { | |
name 'The Apache Software License, Version 2.0' | |
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | |
distribution 'repo' | |
} | |
} | |
developers { | |
developer { | |
id '' | |
name '' | |
} | |
developer { | |
id '' | |
name '' | |
email 'i' | |
} | |
} | |
} | |
} | |
dependency { | |
compile 'com.android.support:support-v4:19.0.+' | |
compile 'com.squareup.retrofit:retrofit:1.3.0@jar' | |
compile 'com.google.code.gson:gson:2.2.4@jar' | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment