Skip to content

Commit

Permalink
Merge pull request eleme#14 from peacepassion/try_buildSrc
Browse files Browse the repository at this point in the history
use buildSrc for plugin for easier develop
  • Loading branch information
JackCho authored Aug 31, 2016
2 parents 599f26e + 3ca5435 commit e77af80
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ buildscript {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath "me.ele:amigo:${VERSION}"
}
}

Expand Down
File renamed without changes.
4 changes: 3 additions & 1 deletion amigo/build.gradle → buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def GROUP = 'me.ele'
def ARTIFACTID = 'amigo'

group = GROUP
version = VERSION
Properties gradleProperties = new Properties()
gradleProperties.load(new File(project.projectDir, '../gradle.properties').newDataInputStream())
version = gradleProperties.getProperty('VERSION')

install {
repositories.mavenInstaller {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include ':app', ':amigo-lib'
include ':amigo'
include ':buildSrc'

0 comments on commit e77af80

Please sign in to comment.