Skip to content

Commit 8963d04

Browse files
author
Josh Friend
committed
Add javadocs to artifacts
Also removed `deploy.gradle` which was added in PhilJay#20 since it was unused and moved the relevant javadoc targets to `build.gradle` instead. Jitpack will host javadocs for you if a javadocs jar is built. The URL ends up being something like: https://jitpack.io/com/github/PhilJay/MPAndroidChart/v2.1.0/javadoc/ Fixes PhilJay#835
1 parent 5ac58fc commit 8963d04

3 files changed

Lines changed: 13 additions & 118 deletions

File tree

‎MPChartLib/build.gradle‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ task sourcesJar(type: Jar) {
5050
classifier = 'sources'
5151
}
5252

53+
task javadoc(type: Javadoc) {
54+
failOnError false
55+
source = android.sourceSets.main.java.sourceFiles
56+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
57+
}
58+
59+
task javadocJar(type: Jar, dependsOn: javadoc) {
60+
classifier = 'javadoc'
61+
from javadoc.destinationDir
62+
}
63+
5364
artifacts {
5465
archives sourcesJar
66+
archives javadocJar
5567
}

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Questions & Issues
5353
If you are having questions or problems, you should:
5454

5555
- Make sure you are using the latest version of the library. Check the [**release-section**](https://github.com/PhilJay/MPAndroidChart/releases).
56-
- Study the [**Documentation-Wiki**](https://github.com/PhilJay/MPAndroidChart/wiki)
56+
- Study the [**Documentation-Wiki**](https://github.com/PhilJay/MPAndroidChart/wiki) or the [javadocs](https://jitpack.io/com/github/PhilJay/MPAndroidChart/-SNAPSHOT/javadoc/)
5757
- Search or open questions on [**stackoverflow**](https://stackoverflow.com/search?q=mpandroidchart) with the `mpandroidchart` tag
5858
- Search [**known issues**](https://github.com/PhilJay/MPAndroidChart/issues) for your problem (open and closed)
5959
- Create new issues (please **search known issues before**, do not create duplicate issues)

‎deploy.gradle‎

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)