Skip to content

Commit

Permalink
Adds gradle release plugin (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecgreb authored and sarahsnow1 committed Aug 8, 2016
1 parent 408aae3 commit 8b7ebc1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,33 @@ buildscript {
repositories {
mavenCentral()
mavenLocal()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'net.researchgate:gradle-release:2.4.0'
}
}

apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'checkstyle'
apply plugin: 'net.researchgate.release'

group = GROUP
version = VERSION_NAME

release {
versionProperties = ['VERSION_NAME']
}

afterReleaseBuild.dependsOn uploadArchives

defaultTasks = ['clean', 'assembleDebug', 'checkstyle', 'copyTask', 'testDebug', 'install']

task checkstyle(type: Checkstyle) {
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version=0.7.2-SNAPSHOT

GROUP=com.mapzen.android
VERSION_NAME=0.7.2-SNAPSHOT

Expand Down

0 comments on commit 8b7ebc1

Please sign in to comment.