Skip to content

Commit e1d8c4a

Browse files
committed
Fix Javadoc images by only filtering HTML files
1 parent 8a41632 commit e1d8c4a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -712,9 +712,11 @@ configure(rootProject) {
712712
}
713713
from("$buildDir/docs") {
714714
include 'javadoc/**'
715-
filter { line ->
716-
line.startsWith("<head>") ? line.replace("<head>", "<head><link rel=\"icon\" type=\"image/png\" href=\"http://junit.org/junit5/assets/img/junit5-logo.png\">") :
717-
line
715+
filesMatching("*.html") {
716+
filter { line ->
717+
line.startsWith("<head>") ? line.replace("<head>", "<head><link rel=\"icon\" type=\"image/png\" href=\"http://junit.org/junit5/assets/img/junit5-logo.png\">") :
718+
line
719+
}
718720
}
719721
}
720722
into "${docsDir}/${docsVersion}"

0 commit comments

Comments
 (0)