javadoc upload setup
All checks were successful
Release / release (push) Successful in 3m33s

This commit is contained in:
2025-08-01 22:49:11 +02:00
parent ec738e30b8
commit aa77d8fe7d
3 changed files with 31 additions and 5 deletions

View File

@@ -51,6 +51,23 @@ tasks.withType(Javadoc).configureEach {
options.bottom = "Copyright © 2025 Egothor"
}
task uploadJavadoc(type: Exec) {
dependsOn javadoc
doFirst {
def javadocDir = tasks.javadoc.destinationDir
def relativeJavadocDir = project.projectDir.toPath().relativize(javadocDir.toPath()).toString()
println "Uploading Javadoc with key: ${javadocKeyPath}"
println " from relative path: $relativeJavadocDir"
commandLine "rsync", "-avz", "--delete",
"-e", "ssh -i ${javadocKeyPath} -o IdentitiesOnly=yes",
relativeJavadocDir + '/', "${javadocUser}@${javadocHost}:${javadocPath}"
}
}
if (project.hasProperty('giteaToken') && project.giteaToken) {
publishing {
publications {