Skip to content

Commit 96926be

Browse files
committed
Package ParseUI-Widget as aar
1 parent 54bcc4a commit 96926be

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

ParseUI-Widget/build.gradle

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,6 @@ android {
4848
android.libraryVariants.all { variant ->
4949
def name = variant.buildType.name
5050

51-
def jarTask = task("jar${name.capitalize()}", type: Jar) {
52-
dependsOn variant.javaCompile
53-
from variant.javaCompile.destinationDir
54-
55-
manifest {
56-
attributes(
57-
"Bundle-Name": 'parseui-widget-android',
58-
"Bundle-Version": project.version
59-
)
60-
}
61-
62-
exclude '**/R.class'
63-
exclude '**/R\$*.class'
64-
exclude '**/Manifest.class'
65-
exclude '**/Manifest\$*.class'
66-
exclude '**/BuildConfig.class'
67-
68-
baseName 'ParseUI-Widget'
69-
}
70-
7151
def javadocTask = task("javadoc${variant.name.capitalize()}", type: Javadoc) {
7252
description "Generates Javadoc for $variant.name."
7353
source = variant.javaCompile.source
@@ -89,7 +69,6 @@ android.libraryVariants.all { variant ->
8969
}
9070

9171
if (name.equals(BuilderConstants.RELEASE)) {
92-
artifacts.add('archives', jarTask);
9372
artifacts.add('archives', javadocJarTask);
9473
}
9574
}
@@ -118,7 +97,7 @@ uploadArchives {
11897
pom.project {
11998
name 'ParseUI-Widget-Android'
12099
artifactId = 'parseui-widget-android'
121-
packaging 'jar'
100+
packaging 'aar'
122101
description 'A library contains ui widgets for building apps with the Parse Android SDK.'
123102
url 'https://github.com/ParsePlatform/ParseUI-Android'
124103

0 commit comments

Comments
 (0)