-1

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

enter image description here

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'
    }
A_Di-Matteo
  • 26,902
  • 7
  • 94
  • 128
user5483163
  • 41
  • 1
  • 5

1 Answers1

0

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.

JBaruch
  • 22,610
  • 5
  • 62
  • 90