Skip to content

Commit 958fc8a

Browse files
Build script: fix javadoc task breaking due to unicode characters #259
Set encoding explicitly to UTF-8. This was caused by the π (pi) character in VectorDistanceType.
1 parent 6f844c4 commit 958fc8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

objectbox-java/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ tasks.register('javadocForWeb', Javadoc) {
8181
destinationDir = file(javadocForWebDir)
8282

8383
title = "ObjectBox Java ${version} API"
84+
options.encoding = 'UTF-8' // Set UTF-8 encoding to support unicode characters used in docs
8485
options.overview = "$projectDir/src/web/overview.html"
8586
options.bottom = 'Available under the Apache License, Version 2.0 - <i>Copyright &#169; 2017-2024 <a href="https://objectbox.io/">ObjectBox Ltd</a>. All Rights Reserved.</i>'
8687

0 commit comments

Comments
 (0)