Skip to content

Commit

Permalink
Upload aar to maven repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
kifile committed Aug 19, 2015
1 parent 0057f5a commit 236c5c2
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ proguard/

# Log Files
*.log
/*/gradle.properties
56 changes: 56 additions & 0 deletions framework/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'maven'
apply plugin: 'signing'

android {
compileSdkVersion 22
Expand All @@ -21,3 +23,57 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}

signing {
sign configurations.archives
}

group = 'com.kifile.android.cornerstone'
archivesBaseName = 'Cornerstone'
version = '0.1'

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 'Cornerstone'
packaging 'aar'
description 'This project is build to let the view looks like a material design widget when touched. '
url 'https://github.com/kifile/Cornerstone'

scm {
connection 'scm:git:https://github.com/kifile/Cornerstone.git'
developerConnection 'scm:git:https://github.com/kifile/Cornerstone.git'
url 'https://github.com/kifile/Cornerstone.git'
}

licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}

developers {
developer {
id 'kifile'
name 'Kifile Chou'
email 'kifile@kifile.com'
}
}
}
}
}
}

0 comments on commit 236c5c2

Please sign in to comment.