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 3636import org .gradle .api .artifacts .result .ResolvedArtifactResult ;
3737import org .gradle .api .file .ConfigurableFileCollection ;
3838import org .gradle .api .internal .plugins .DslObject ;
39+ import org .gradle .api .plugins .JavaPlugin ;
3940import org .gradle .api .plugins .JavaPluginConvention ;
4041import org .gradle .api .plugins .MavenPluginConvention ;
4142import org .gradle .api .tasks .GroovySourceSet ;
4546import org .gradle .api .tasks .bundling .Jar ;
4647import org .gradle .api .tasks .compile .GroovyCompile ;
4748import org .gradle .api .tasks .compile .JavaCompile ;
49+ import org .gradle .api .tasks .javadoc .Javadoc ;
4850import org .gradle .api .tasks .scala .ScalaCompile ;
4951import org .gradle .jvm .JvmLibrary ;
5052import org .gradle .language .base .artifact .SourcesArtifact ;
@@ -475,6 +477,9 @@ protected void configureCompilation()
475477 project .getConfigurations ().getByName ("apiCompile" ).extendsFrom (project .getConfigurations ().getByName ("compile" ));
476478 project .getConfigurations ().getByName ("testCompile" ).extendsFrom (project .getConfigurations ().getByName ("apiCompile" ));
477479
480+ Javadoc javadoc = (Javadoc ) project .getTasks ().getByName (JavaPlugin .JAVADOC_TASK_NAME );
481+ javadoc .setClasspath (main .getOutput ().plus (main .getCompileClasspath ()));
482+
478483 // set the compile target
479484 javaConv .setSourceCompatibility ("1.6" );
480485 javaConv .setTargetCompatibility ("1.6" );
You can’t perform that action at this time.
0 commit comments