-
Notifications
You must be signed in to change notification settings - Fork 209
Kotlin android library mavenAndroidJavadocs task fail #71
Comments
you can try add the followed code to ignore checking javadoc's error(add these code into build.gradle file): allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
}
} hope it helps you. |
It did not help, same error. Any ideas? |
I face the same problem, How can I skip the javadoc task for kotlin sources |
Have you tried to exclude explicit tasks? |
... |
thank you very much |
Resolves #26. (Answer found from: novoda/bintray-release#71 (comment)) Also updates version to 2.0.1
Resolves #26. (Answer found from: novoda/bintray-release#71 (comment)) Also updates version to 2.0.1
I'm not an expert in the gradle api, but I fixed this in my personal task javadoc(type: Javadoc) {
excludes = ['**/*.kt'] // < ---- Exclude all kotlin files from javadoc file.
// ...
} |
This is a problem in the Javadoc generation itself and not in this plugin, many suggestions in this thread work, for me adding this to the library tasks.withType(Javadoc) {
options.addBooleanOption('Xdoclint:none', true)
} from: http://stackoverflow.com/questions/34874175/disable-all-javadoc-in-gradle Thanks all for your input. |
I don't think this is the best way but it works for me. Add tasks.withType(Javadoc).all {
enabled = false
} to your build.gradle. Hope it helps. |
@ebnbin It worked for me! |
* Add Kotlin to Barista! 🎉 * Add checkDrawable assertion * Add sample tests * Add README new assertion * Add instrumentation test to check BitmapComparator * Upgrade Barista version * Revert version upgrade * Simplify tests * FIX findbugs violation. The generated object bytecode by Kotlin is not findbugs friendly :( * Exclude Kotlin classes from javadoc due to generation error. More info at: novoda/bintray-release#71 * Exclude lint from javadoc. More info at: novoda/bintray-release#71 * Move javadoc exclusion from quality to library gradle * The last one? * Match previous comments style * Improve reader (and Roc) productivity by adding more info to comments * Improve method readability by specifying the body instead of returning a long block of code * Move ic_barista from mipmap to drawable
@ebnbin your solution worked! Thank you!!! @BennyWang, @asarazan, @xrigau I tried inserting your code in my project level build.gradle, but unfortunately having the same issue. @busylee999 Unfortunately your link from December 25, 2015 above no longer works. http://www.practicalgradle.org/blog/2010/10/skipping-tasks/. |
@ebnbin worked!! Ty |
I'm just wondering here, is dokka in any way supposed to fix this issue? |
After doing @ebnbin solution, i clean & rebuild my project and it worked. Thank you!! |
It seems this issue has become a place to discuss problems with Kotlin and @hendraanggrian Yes, dokka can fix the problem if you disable However, in my particular project I have problems with the generation of Javadocs, but nothing breaking; it just takes a long time to generate the docs compared to So, can it replace |
@asarazan |
The thing is that dokka generated javadoc/kdoc can't be displayed in IntelliJ somehow. |
I have tried all solutions what explained above comments.
|
@ebnbin worked! Thanks! |
I try to publish my android library on Kotlin using bintray-release plugin and feared followed error:
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/InfoEntry.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/ObjectInfo.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/preferences/BooleanPreferenceInfo.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/preferences/FloatPreferenceInfo.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/preferences/IntPreferenceInfo.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/preferences/LongPreferenceInfo.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/preferences/PreferenceInfo.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/preferences/StringPreferenceInfo.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/mutable/BooleanMutable.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/mutable/MutableEntry.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/mutable/SetStringMutableEntry.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/ui/DevPanelActivity.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/ui/InfoListAdapter.kt" javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/ui/PanelLinearListView.kt" 14 errors :devpanellib:mavenAndroidJavadocs FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':devpanellib:mavenAndroidJavadocs'.
The text was updated successfully, but these errors were encountered: