Skip to content

Commit 82f136a

Browse files
committed
Merge pull request #3 from plusCubed/master
Add dependencies to classpath for Javadoc generation
2 parents 9b68269 + 46d9654 commit 82f136a

5 files changed

Lines changed: 13 additions & 19 deletions

File tree

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
# android-example
22

3-
[![Release](https://img.shields.io/github/release/jitpack/android-example.svg?label=maven version)](https://jitpack.io/#jitpack/android-example)
3+
[![Release](https://img.shields.io/github/release/jitpack/android-example.svg?label=Jitpack)](https://jitpack.io/#jitpack/android-example)
44

5-
Example Android library project that works with jitpack.io. The
6-
See also the guide for [building Android projects](https://github.com/jitpack/jitpack.io/blob/master/ANDROID.md)
5+
Example Android library project that works with jitpack.io.
6+
Also see the guide for [building Android projects](https://github.com/jitpack/jitpack.io/blob/master/ANDROID.md)
77

8-
https://jitpack.io/#jitpack/android-example/1.0.2
8+
https://jitpack.io/#jitpack/android-example
99

1010
Add it to your build.gradle with:
1111
```gradle
1212
repositories {
13-
jcenter()
1413
maven { url "https://jitpack.io" }
1514
}
1615
```
1716
and:
1817

1918
```gradle
2019
dependencies {
21-
compile 'com.github.jitpack:android-example:1.0.2'
20+
compile 'com.github.jitpack:android-example:{latest version}'
2221
}
2322
```
2423

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:1.2.3'
8+
classpath 'com.android.tools.build:gradle:1.3.1'
99
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
1010
}
1111
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Apr 10 15:27:10 PDT 2013
1+
#Sun Dec 13 15:17:37 PST 2015
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-all.zip

library/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ apply plugin: 'com.android.library'
22
apply plugin: 'com.github.dcendents.android-maven' // ADD THIS
33

44
android {
5-
compileSdkVersion 21
6-
buildToolsVersion "21.1.2"
5+
compileSdkVersion 23
6+
buildToolsVersion "23.0.2"
77

88
defaultConfig {
99
minSdkVersion 21
10-
targetSdkVersion 21
10+
targetSdkVersion 23
1111
versionCode 1
1212
versionName "1.0"
1313
}
@@ -33,6 +33,7 @@ task javadoc(type: Javadoc) {
3333
failOnError false
3434
source = android.sourceSets.main.java.sourceFiles
3535
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
36+
classpath += configurations.compile
3637
}
3738

3839
// build a jar with javadoc
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="io.jitpack.example.examplelib">
3-
4-
<application android:allowBackup="true" android:label="@string/app_name"
5-
android:icon="@drawable/ic_launcher" android:theme="@style/AppTheme">
6-
7-
</application>
1+
<manifest package="io.jitpack.example.examplelib">
82

93
</manifest>

0 commit comments

Comments
 (0)