How to generate Javadoc for Maven Central?

I am trying to sync my package from bintray with Maven Central, but get this error :

What do I need to do to generate the Javadoc?

I use the Gradle:

dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'
        classpath 'com.novoda:bintray-release:0.3.4'
    }

Answers


In Maven:

According to the docs, you should add the javadoc plugin:

<project>
  ...
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.10.3</version>
        <configuration>
          ...
        </configuration>
      </plugin>
    </plugins>
    ...
  </reporting>
  ...
</project>

And then run mvn site.


In Gradle:

According to the docs, you should add a task of type Javadoc and then add the output of this task to a configuration or a publication:

apply plugin: 'java'

task myJavadocs(type: Javadoc) {
  source = sourceSets.main.allJava
}

You can find complete examples of Gradle projects that publish to Bintray's JCenter at Bintray's examples project on GitHub.


Need Your Help

Core data images from desktop to iphone

iphone core-data imageview nsmanagedobject

I built a simple mac data entry tool I use with an iPhone application. I've recently added thumbnail which I added via an Image Well using simple bindings. Its a transformable data type which seems...

CRUD with Access Database using ASP.NET

asp.net

How can I use Microsoft Access as a database in ASP.NET website? Is it possible?