Skip to content

Commit

Permalink
Make the gitPublish task depend directly on the other tasks (vs the f…
Browse files Browse the repository at this point in the history
…olders) to make Gradle aware of the task dependencies
  • Loading branch information
davidwheeler123 committed Jun 3, 2024
1 parent a3e1b95 commit 3b5ca98
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions documentation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ tasks {
}
}

rootProject.subprojects.filter { project != it }.forEach { project ->
rootProject.subprojects.filter { project != it }.forEach { otherProject ->

project.tasks.withType(Javadoc::class.java).forEach { task ->
otherProject.tasks.withType(Javadoc::class.java).forEach { task ->
dependsOn(task)
source += task.source
classpath += task.classpath
Expand Down Expand Up @@ -119,17 +119,17 @@ tasks {
branch.set("gh-pages")

contents {
from("$buildDir/docs/html5") {
from(asciidoctor) {
into("docs/$version")
}
from ("$buildDir/javadoc") {
from (aggregateJavadocs) {
into("docs/$version/javadoc")
}
if (!isSnapshot) {
from("$buildDir/docs/html5") {
from(asciidoctor) {
into("docs/current")
}
from ("$buildDir/javadoc") {
from (aggregateJavadocs) {
into("docs/current/javadoc")
}
}
Expand Down

0 comments on commit 3b5ca98

Please sign in to comment.