File tree 1 file changed +11
-0
lines changed
buildSrc/src/main/groovy/io/spring/gradle/convention
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import java.util.Set;
23
23
import java.util.regex.Pattern ;
24
24
25
25
import org.gradle.api.Action ;
26
+ import org.gradle.api.JavaVersion
26
27
import org.gradle.api.Plugin ;
27
28
import org.gradle.api.Project ;
28
29
import org.gradle.api.plugins.JavaPluginConvention ;
@@ -49,6 +50,16 @@ public class JavadocApiPlugin implements Plugin<Project> {
49
50
50
51
api. setGroup(" Documentation" );
51
52
api. setDescription(" Generates aggregated Javadoc API documentation." );
53
+ api. doLast {
54
+ if (JavaVersion . current(). isJava11Compatible()) {
55
+ project. copy({ copy -> copy
56
+ .from(api. destinationDir)
57
+ .into(api. destinationDir)
58
+ .include(" element-list" )
59
+ .rename(" element-list" , " package-list" )
60
+ });
61
+ }
62
+ }
52
63
53
64
Set<Project > subprojects = rootProject. getSubprojects();
54
65
for (Project subproject : subprojects) {
You can’t perform that action at this time.
0 commit comments