I finally found the problem. So I had a structure ...
// GRADLE FILE START Standard task definitions ... !!! JAVADOC DISABLING (basically everything I tried I put here) !!! Importing my maven upload and bintray upload scripts (command: 'apply from') ... Dependencies // GRADLE FILE END
What I was missing was that the androidJavadoc and javadoc tasks work differently, And that Gradle parses the file from top to bottom. It doesn't matter where you define your things.
So, I naively put the JAVADOC tasks in the middle of the file, and the task :javadoc could not be overwritten, could not be disabled, etc. - because it was created only by the install segment inside pom_install.gradle I imported in the next few lines.
A quick fix for most of my Gradle issues - put everything you read in StackOverflow at the end of the file. This is silly. So the new structure ...
// GRADLE FILE START Standard task definitions ... Importing my maven upload and bintray upload scripts (command: 'apply from') ... Dependencies ... !!! JAVADOC DISABLING (basically everything I tried I put here) !!! // GRADLE FILE END
source share