Fix javadoc search resulting in 404

This commit is contained in:
Kieran Wallbanks 2021-03-30 14:02:35 +01:00
parent 43069a02a7
commit 3e43e68cf9
1 changed files with 10 additions and 0 deletions

View File

@ -50,6 +50,16 @@ allprojects {
links "https://jd.adventure.kyori.net/api/$adventureVersion/"
links "https://docs.oracle.com/en/java/javase/11/docs/api/"
}
// see https://stackoverflow.com/a/56641766
doLast {
// Append the fix to the file
def searchScript = new File(destinationDir.getAbsolutePath() + '/search.js')
searchScript.append '\n\n' +
'getURLPrefix = function(ui) {\n' +
' return \'\';\n' +
'};\n'
}
}
checkstyle {