Skip to content

Commit

Permalink
Fixed JavaDocUtils not ignoring html directory
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Apr 12, 2024
1 parent 2f2d206 commit 4f59762
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ allprojects {

tasks.register("aggregateJavaDoc") {
allprojects.forEach { dependsOn "${it.path}:javadoc" }
JavaDocUtils.aggregateJavaDoc("html", rootProject.name, rootProject.version, TEST_MODULE)
JavaDocUtils.aggregateJavaDoc("html/docs", rootProject.name, rootProject.version, TEST_MODULE)
}

testCodeCoverageReport {
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/groovy/JavaDocUtils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import java.nio.file.StandardCopyOption
@CompileDynamic
class JavaDocUtils {
private static final String DOCS_DIR = 'javadoc'
private static final String[] IGNORE_DIRS = [ 'main', 'java', 'groovy', 'src', 'buildSrc', 'resources' ]
private static final String[] IGNORE_DIRS = [ 'main', 'java', 'groovy', 'html', 'src', 'buildSrc', 'resources' ]
private static final String[] RESOURCES = [ 'index.html', 'javadoc-stylesheet.css' ]
private static final String MODULE_PLACEHOLDER = '%modules%'
private static final String MODULE_FORMAT_FILE = 'module-format.html'
Expand All @@ -30,7 +30,7 @@ class JavaDocUtils {
if (!outputDir.mkdirs()) throw new IllegalStateException("Could not create directory ${output}")

aggregateJavaDocRec(current, outputDir, ignoreDirs)
// createModulesPage(name, version, outputDir)
createModulesPage(name, version, outputDir)
}

/**
Expand Down

0 comments on commit 4f59762

Please sign in to comment.