File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/net/minecraftforge/gradle/user Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 3737import org .gradle .api .artifacts .result .ResolvedArtifactResult ;
3838import org .gradle .api .file .ConfigurableFileCollection ;
3939import org .gradle .api .internal .plugins .DslObject ;
40+ import org .gradle .api .plugins .JavaPlugin ;
4041import org .gradle .api .plugins .JavaPluginConvention ;
4142import org .gradle .api .plugins .MavenPluginConvention ;
4243import org .gradle .api .tasks .GroovySourceSet ;
4647import org .gradle .api .tasks .bundling .Jar ;
4748import org .gradle .api .tasks .compile .GroovyCompile ;
4849import org .gradle .api .tasks .compile .JavaCompile ;
50+ import org .gradle .api .tasks .javadoc .Javadoc ;
4951import org .gradle .api .tasks .scala .ScalaCompile ;
5052import org .gradle .jvm .JvmLibrary ;
5153import org .gradle .language .base .artifact .SourcesArtifact ;
@@ -485,6 +487,9 @@ protected void configureCompilation()
485487 project .getConfigurations ().getByName ("apiCompile" ).extendsFrom (project .getConfigurations ().getByName ("compile" ));
486488 project .getConfigurations ().getByName ("testCompile" ).extendsFrom (project .getConfigurations ().getByName ("apiCompile" ));
487489
490+ Javadoc javadoc = (Javadoc ) project .getTasks ().getByName (JavaPlugin .JAVADOC_TASK_NAME );
491+ javadoc .setClasspath (main .getOutput ().plus (main .getCompileClasspath ()));
492+
488493 // set the compile target
489494 javaConv .setSourceCompatibility ("1.6" );
490495 javaConv .setTargetCompatibility ("1.6" );
You can’t perform that action at this time.
0 commit comments