Skip to content

Commit 602f894

Browse files
committed
Update Javadoc theme to support more recent JDK versions
1 parent c46738f commit 602f894

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

local-build-plugins/src/main/groovy/local.javadoc.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ configurations {
1111
}
1212

1313
dependencies {
14-
themezip 'org.hibernate.infra:hibernate-asciidoctor-theme:5.1.1.Final@zip'
14+
themezip 'org.hibernate.infra:hibernate-asciidoctor-theme:6.0.1.Final@zip'
1515
}
1616

1717
tasks.register('unpackTheme', Copy) {
1818
def unpackDir = rootProject.layout.buildDirectory.dir("unpacked-theme")
1919

20-
onlyIf {
21-
!unpackDir.get().asFile.exists()
22-
}
2320
destinationDir = unpackDir.get().asFile
2421

2522
def zipFile = configurations.themezip.singleFile
@@ -45,7 +42,7 @@ tasks.withType(Javadoc).configureEach {
4542
docTitle = "Hibernate Javadocs ($project.name : $project.version)"
4643
// Pick the styles for the JDK that is used to "build" the Javadocs:
4744
stylesheetFile = rootProject.layout.buildDirectory.dir("unpacked-theme").get()
48-
.dir("hibernate-asciidoctor-theme").dir("javadoc").dir("jdk21").file("stylesheet.css").asFile
45+
.dir("hibernate-asciidoctor-theme").dir("javadoc").dir("jdk"+jdkVersions.min.asInt()).file("stylesheet.css").asFile
4946
bottom = "Copyright &copy; 2001-$currentYear <a href=\"https://redhat.com\">Red Hat, Inc.</a> All Rights Reserved."
5047

5148
// The javadoc folder contains cached versions of the respective element-list files to avoid release issues when servers are down

0 commit comments

Comments
 (0)