Skip to content

Commit 2b9e84b

Browse files
marko-bekhtasebersole
authored andcommitted
HHH-19894 Switch the Javadoc theme for JDK 25
1 parent ecef076 commit 2b9e84b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ configurations {
1111
}
1212

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

1717
tasks.register('unpackTheme', Copy) {
@@ -44,8 +44,9 @@ tasks.withType(Javadoc).configureEach {
4444
windowTitle = "Hibernate Javadocs ($project.name)"
4545
docTitle = "Hibernate Javadocs ($project.name : $project.version)"
4646
// Pick the styles for the JDK that is used to "build" the Javadocs:
47-
stylesheetFile = rootProject.layout.buildDirectory.dir("unpacked-theme").get()
48-
.dir("hibernate-asciidoctor-theme").dir("javadoc").dir("jdk21").file("stylesheet.css").asFile
47+
48+
def rootThemeDir = rootProject.layout.buildDirectory.dir("unpacked-theme").get().dir("hibernate-asciidoctor-theme").dir("javadoc").dir("jdk25")
49+
stylesheetFile = rootThemeDir.file("stylesheet.css").asFile
4950
bottom = "Copyright &copy; 2001-$currentYear <a href=\"https://redhat.com\">Red Hat, Inc.</a> All Rights Reserved."
5051

5152
// The javadoc folder contains cached versions of the respective element-list files to avoid release issues when servers are down
@@ -70,6 +71,10 @@ tasks.withType(Javadoc).configureEach {
7071
quiet()
7172

7273
addBooleanOption('Xdoclint:none', true)
74+
75+
header = "<div id=\"toggleContainer\"></div>"
76+
addStringOption '-add-script', rootThemeDir.dir('resources').file('theme-switch.js').asFile.absolutePath
77+
docFilesSubDirs = true
7378
}
7479
dependsOn tasks.unpackTheme
7580
}

0 commit comments

Comments
 (0)