Skip to content

Commit 3590a98

Browse files
author
John Hunt
committed
publish each module as its own library
1 parent 4a85b53 commit 3590a98

File tree

4 files changed

+28
-5
lines changed

4 files changed

+28
-5
lines changed

analyticskit/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
4949
artifacts {
5050
archives sourcesJar
5151
archives javadocJar
52-
}
52+
}
53+

answers-provider/answers-provider.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@
109109
<orderEntry type="library" exported="" name="support-vector-drawable-23.2.0" level="project" />
110110
<orderEntry type="library" exported="" name="appcompat-v7-23.2.0" level="project" />
111111
<orderEntry type="library" exported="" name="AnalyticsKit-Android-0.2.0" level="project" />
112-
<orderEntry type="library" exported="" scope="TEST" name="hamcrest-core-1.3" level="project" />
113112
<orderEntry type="library" exported="" name="fabric-1.3.10" level="project" />
113+
<orderEntry type="library" exported="" scope="TEST" name="hamcrest-core-1.3" level="project" />
114114
<orderEntry type="library" exported="" scope="TEST" name="junit-4.12" level="project" />
115115
</component>
116116
</module>

answers-provider/build.gradle

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
apply plugin: 'com.android.library'
18+
apply plugin: 'com.github.dcendents.android-maven'
1819
apply plugin: 'io.fabric' //Put Fabric plugin after Android plugin
1920

2021
android {
@@ -25,7 +26,7 @@ android {
2526
minSdkVersion rootProject.ext.minSdkVersion
2627
targetSdkVersion rootProject.ext.targetSdkVersion
2728
versionCode 1
28-
versionName "0.1.0"
29+
versionName "0.1.1"
2930
}
3031
buildTypes {
3132
release {
@@ -51,3 +52,24 @@ dependencies {
5152
transitive = true;
5253
}
5354
}
55+
56+
task sourcesJar(type: Jar) {
57+
from android.sourceSets.main.java.srcDirs
58+
classifier = 'sources'
59+
}
60+
61+
task javadoc(type: Javadoc) {
62+
failOnError false
63+
source = android.sourceSets.main.java.sourceFiles
64+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
65+
}
66+
67+
task javadocJar(type: Jar, dependsOn: javadoc) {
68+
classifier = 'javadoc'
69+
from javadoc.destinationDir
70+
}
71+
72+
artifacts {
73+
archives sourcesJar
74+
archives javadocJar
75+
}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ ext {
2525
minSdkVersion = 16
2626
targetSdkVersion = 23
2727
buildToolsVersion = "23.0.1"
28-
versionCode = 1
29-
versionName = "0.1.1"
28+
versionCode = 5
29+
versionName = "0.2.2"
3030

3131
/** Unit Testing Dependency Versions **/
3232
assertj_android_version = "1.0.0"

0 commit comments

Comments
 (0)