diff --git a/README.md b/README.md index c1e21cd..b112181 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ An Android framework library and demo to help you building your app quickly. ```gradle dependencies { - compile 'cn.ieclipse.af:af-library:2.0.2' + compile 'cn.ieclipse.af:af-library:2.1.0' } android { // for target api >= 23 (Android 6.0) diff --git a/library/android-maven.gradle b/library/android-maven.gradle index 272ac64..cb61bf9 100644 --- a/library/android-maven.gradle +++ b/library/android-maven.gradle @@ -5,10 +5,10 @@ // } //} +group = project.property('ART_GROUP') +version = project.property('ART_VER') project.ext { name = project.property('ART_ARTIFACT') - group = project.property('ART_GROUP') - version = project.property('ART_VER') artifactId = project.property('ART_ARTIFACT') archivesBaseName = project.property('ART_ARTIFACT') } @@ -69,12 +69,13 @@ task findConventions << { } install { - println(artifactId) repositories.mavenInstaller { // This generates POM.xml with proper parameters pom { project { - // artifactId project.property('ART_ARTIFACT') + groupId project.property('ART_GROUP') + artifactId project.property('ART_ARTIFACT') + version project.property('ART_VER') packaging ART_PKG // Add your description here name project.property('PRJ_NAME') @@ -102,10 +103,10 @@ install { } } } -// repositories.mavenDeployer() { -// repository(url: ART_LOCAL_URL) -// pom.groupId = ART_GROUP -// pom.artifactId = ART_ARTIFACT -// pom.version = ART_VER -// } + repositories.mavenDeployer() { + repository(url: ART_LOCAL_URL) + pom.groupId = ART_GROUP + pom.artifactId = ART_ARTIFACT + pom.version = ART_VER + } } diff --git a/library/gradle.properties b/library/gradle.properties index fdd0541..5fd8461 100644 --- a/library/gradle.properties +++ b/library/gradle.properties @@ -8,7 +8,7 @@ systemProp.socksProxyHost=127.0.0.1 systemProp.socksProxyPort=1080 # artifact -ART_VER=2.0.2 +ART_VER=2.1.0 ART_GROUP=cn.ieclipse.af ART_ARTIFACT=af-library ART_PKG=aar @@ -29,7 +29,7 @@ LIC_DESC= SCM_URL=https://github.com/Jamling/QuickAF SCM_REPO=https://github.com/Jamling/QuickAF.git SCM_DEV=git@github.com:Jamling/QuickAF.git -SCM_TAG=v2.0.2 +SCM_TAG=v2.1.0 # MAVEN DEV DEV_NAME=QuickAF Project