Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
115 lines (97 sloc) 2.66 KB
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'com.android.library'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
}
}
signing {
sign configurations.archives
}
android {
buildToolsVersion "19.1.0"
compileSdkVersion 18
defaultConfig {
proguardFile 'proguard-player-hater.txt'
}
}
//task packageSources(type: Jar) {
// from android.sourceSets.main.allJava
// classifier = 'sources'
//}
//
//artifacts {
// archives packageSources
//}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
authentication(userName: sonatypeUserName, password: sonatypePassword)
}
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: sonatypeUserName, password: sonatypePassword)
}
pom.project {
version '0.3.7-SNAPSHOT'
artifactId 'playerhater'
groupId 'org.prx'
name 'PlayerHater'
description 'Android library for playing back longform audio such as music or podcasts with player controls.'
url 'http://github.com/PRX/PlayerHater'
scm {
url 'https://github.com/PRX/PlayerHater/'
connection 'scm:git:git://github.com/PRX/PlayerHater.git'
developerConnection 'scm:git:git@github.com:PRX/PlayerHater.git'
tag 'HEAD'
}
developers {
developer {
name 'Chris Rhoden'
email 'carhoden@gmail.com'
id 'chrisrhoden'
url 'http://chrisrhoden.com'
timezone '-5'
roles {
role 'developer'
}
}
developer {
name 'Rebecca Nesson'
id 'rebeccanesson'
email 'rebeccanesson@gmail.com'
timezone '-5'
roles {
role 'developer'
}
}
}
organization {
name 'PRX'
url 'http://prx.org'
}
issueManagement {
system 'GitHub Issues'
url 'https://github.com/PRX/PlayerHater/issues'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
parent {
groupId 'org.sonatype.oss'
artifactId 'oss-parent'
version 7
}
}
}
}
}