apply plugin: 'com.android.library' apply plugin: 'maven' apply plugin: 'signing' apply plugin: 'nexus-workflow' group = "com.snilius" archivesBaseName = "aboutit" version = "1.0.1" android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { minSdkVersion 14 targetSdkVersion 21 versionCode 2 versionName version } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile 'com.android.support:appcompat-v7:21.0.3' } configurations { archives { extendsFrom configurations.default } } signing { sign configurations.archives } uploadArchives { repositories { mavenDeployer { beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { authentication(userName: ossrhUsername, password: ossrhPassword) } snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { authentication(userName: ossrhUsername, password: ossrhPassword) } pom.project { name 'AboutIt' packaging 'jar' // optionally artifactId can be defined here description 'A About-page creator' url 'https://github.com/victorhaggqvist/AboutIt' scm { connection 'scm:git:https://github.com/victorhaggqvist/AboutIt.git' developerConnection 'scm:git:https://github.com/victorhaggqvist/AboutIt.git' url 'https://github.com/victorhaggqvist/AboutIt' } licenses { license { name 'The Apache License, Version 2.0' url 'http://www.apache.org/licenses/LICENSE-2.0.txt' } } developers { developer { id 'atriix' name 'Victor Häggqvist' email 'victor@snilius.com' } } } } } }