Skip to content

Commit

Permalink
updated for Android Studio 1.0 and new AAR publishing system
Browse files Browse the repository at this point in the history
  • Loading branch information
commonsguy committed Dec 22, 2014
1 parent 794c6c4 commit 22010f0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 19 deletions.
5 changes: 3 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repositories {
}
dependencies {
compile 'com.commonsware.cwac:merge:1.1.0'
compile 'com.commonsware.cwac:merge:1.1.+'
}
```

Expand Down Expand Up @@ -166,7 +166,7 @@ that do not work on API Level 4 and are not noted as requiring a higher version.

Version
-------
This is version v1.1.0 of this module.
This is version v1.1.1 of this module.

For those of you updating from a previous version, please note that you need
a new edition of the `SackOfViewsAdapter` JAR as well.
Expand Down Expand Up @@ -201,6 +201,7 @@ Do not ask for help via Twitter.

Release Notes
-------------
- v1.1.1: updated for Android Studio 1.0 and new AAR publishing system
- v1.1.0: added `android:minSdkVersion` to library manifest
- v1.0.4: added `cwac-` prefix to JAR
- v1.0.3: re-fixed manifest to better handle manifest merging per issue #14
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.14.+'
classpath 'com.android.tools.build:gradle:1.0.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion demo/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apply plugin: 'android'
apply plugin: 'com.android.application'

repositories {
maven {
Expand Down
32 changes: 17 additions & 15 deletions merge/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.dcendents:android-maven-plugin:1.2'
}
}

apply plugin: 'android-library'
apply plugin: 'android-maven'

version '1.1.0'
group 'com.commonsware.cwac'
apply plugin: 'com.android.library'

repositories {
maven {
Expand Down Expand Up @@ -53,5 +40,20 @@ android.libraryVariants.all { variant ->
def task = project.tasks.create "jar${name.capitalize()}", Jar
task.dependsOn variant.javaCompile
task.from variant.javaCompile.destinationDir
task.archiveName = "cwac-${task.archiveName}"
task.baseName = "cwac-${PUBLISH_ARTIFACT_ID}"
task.version = PUBLISH_VERSION
task.exclude('com/commonsware/cwac/**/BuildConfig.**')
}

apply plugin: 'maven'

uploadArchives {
repositories.mavenDeployer {
pom.groupId = PUBLISH_GROUP_ID
pom.artifactId = PUBLISH_ARTIFACT_ID
pom.version = PUBLISH_VERSION

repository(url: LOCAL_REPO)
}
}

0 comments on commit 22010f0

Please sign in to comment.