Skip to content

Commit 22010f0

Browse files
committed
updated for Android Studio 1.0 and new AAR publishing system
1 parent 794c6c4 commit 22010f0

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

README.markdown

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ repositories {
4444
}
4545
4646
dependencies {
47-
compile 'com.commonsware.cwac:merge:1.1.0'
47+
compile 'com.commonsware.cwac:merge:1.1.+'
4848
}
4949
```
5050

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

167167
Version
168168
-------
169-
This is version v1.1.0 of this module.
169+
This is version v1.1.1 of this module.
170170

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

202202
Release Notes
203203
-------------
204+
- v1.1.1: updated for Android Studio 1.0 and new AAR publishing system
204205
- v1.1.0: added `android:minSdkVersion` to library manifest
205206
- v1.0.4: added `cwac-` prefix to JAR
206207
- v1.0.3: re-fixed manifest to better handle manifest merging per issue #14

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:0.14.+'
8+
classpath 'com.android.tools.build:gradle:1.0.0'
99

1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files

demo/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apply plugin: 'android'
1+
apply plugin: 'com.android.application'
22

33
repositories {
44
maven {

merge/build.gradle

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
1-
buildscript {
2-
repositories {
3-
mavenCentral()
4-
}
5-
dependencies {
6-
classpath 'com.github.dcendents:android-maven-plugin:1.2'
7-
}
8-
}
9-
10-
apply plugin: 'android-library'
11-
apply plugin: 'android-maven'
12-
13-
version '1.1.0'
14-
group 'com.commonsware.cwac'
1+
apply plugin: 'com.android.library'
152

163
repositories {
174
maven {
@@ -53,5 +40,20 @@ android.libraryVariants.all { variant ->
5340
def task = project.tasks.create "jar${name.capitalize()}", Jar
5441
task.dependsOn variant.javaCompile
5542
task.from variant.javaCompile.destinationDir
56-
task.archiveName = "cwac-${task.archiveName}"
43+
task.baseName = "cwac-${PUBLISH_ARTIFACT_ID}"
44+
task.version = PUBLISH_VERSION
45+
task.exclude('com/commonsware/cwac/**/BuildConfig.**')
5746
}
47+
48+
apply plugin: 'maven'
49+
50+
uploadArchives {
51+
repositories.mavenDeployer {
52+
pom.groupId = PUBLISH_GROUP_ID
53+
pom.artifactId = PUBLISH_ARTIFACT_ID
54+
pom.version = PUBLISH_VERSION
55+
56+
repository(url: LOCAL_REPO)
57+
}
58+
}
59+

0 commit comments

Comments
 (0)