File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 restore-keys : ${{ runner.os }}-gradle
3030
3131 - name : Build JavaDocs
32- run : ./gradlew javadoc
32+ run : ./gradlew aggregatedJavadocs
3333
3434 - name : Deploy JavaDocs
3535 uses : peaceiris/actions-gh-pages@v4
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ plugins {
1010allprojects {
1111 apply (plugin = " java-library" )
1212
13+ version = " v0.25.0"
14+
1315 tasks.withType<JavaCompile > {
1416 options.encoding = Charsets .UTF_8 .toString()
1517 }
@@ -36,3 +38,27 @@ subprojects {
3638 }
3739 }
3840}
41+
42+ tasks.register<Javadoc >(" aggregatedJavadocs" ) {
43+ group = " documentation"
44+ description = " Generates aggregated Javadocs for all subprojects."
45+ (options as StandardJavadocDocletOptions ).apply {
46+ encoding = Charsets .UTF_8 .toString()
47+ links = listOf (" https://docs.oracle.com/javase/11/docs/api/" )
48+ title = " NewPipe Extractor ${rootProject.version} "
49+ tags = listOf (
50+ " apiNote:a:API Note:" ,
51+ " implSpec:a:Implementation Requirements:" ,
52+ " implNote:a:Implementation Note:"
53+ )
54+ }
55+
56+ dependsOn(subprojects.map { it.tasks.named(" classes" ) })
57+
58+ subprojects.forEach { proj ->
59+ proj.extensions.findByType(JavaPluginExtension ::class .java)?.sourceSets?.getByName(" main" )?.let { main ->
60+ source(main.allJava)
61+ classpath + = main.output + proj.configurations.getByName(" compileClasspath" )
62+ }
63+ }
64+ }
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ publishing {
108108 create<MavenPublication >(" release" ) {
109109 groupId = " net.newpipe"
110110 artifactId = " extractor"
111- version = " v0.25.0 "
111+ version = rootProject.version.toString()
112112
113113 afterEvaluate {
114114 from(components[" java" ])
You can’t perform that action at this time.
0 commit comments