Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to disable javadoc crashes in Android Studio with Maven plugin?

I'm using com.github.dcendents:android-maven-gradle-plugin to generate a POM file and then upload it to Bintray. Though when I run ./gradlew install, the script invokes Maven's install command, and FAILS on generating JavaDoc. I've already searched everywhere to find how to disable javadoc errors, but there is always one more issue I cannot solve.

Tested: 'failOnError false', disabling javadoc task (wasn't allowed), adding various parameters to install task for POM generation, tried different flags on the CLI, etc.

I've used this tutorial.

like image 270
milosmns Avatar asked Sep 25 '22 23:09

milosmns


1 Answers

for me running gradlew install without javadoc generation was enough to overcome this, my crash was due to a stricter javadoc format requirement added in java 8 and one of my libs was at fault

gradlew install -xjavadoc
like image 156
Liran Cohen Avatar answered Sep 30 '22 01:09

Liran Cohen