Javadoc with Gradle : Don't get the libraries while running javadoc task -


i new gradle, , trying run javadoc using gradle. have followed gradle javadoc page, have added next task in build.gradle:

 apply plugin: 'java'   task myjavadocs(type: javadoc) { source = sourcesets.main.alljava  } 

my problem is, none of libraries of project added, lot of errors next one:

myclass.java:7: package net.sf.oval.constraint not exist import net.sf.oval.constraint.notnull; 

what doing wrong?

thanks time,

rafael

you have configure class path of javadoc task. like:

myjavadocs {     classpath = configurations.compile } 

for further configuration options, see dsl reference.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -