diff options
author | Julien Gouesse <[email protected]> | 2023-04-17 20:45:03 +0200 |
---|---|---|
committer | Julien Gouesse <[email protected]> | 2023-04-17 20:45:03 +0200 |
commit | 008c7fb7091648ae8a278e44b3c26a32fb334d48 (patch) | |
tree | 54ef14e7c598af20997008573d3d0e659e84e0c0 | |
parent | 06c84ec213de7200500284759bd9d83390ebc246 (diff) |
Generates the aggregated Java API documentation
-rw-r--r-- | build.gradle | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index b2dd102..ffb9465 100644 --- a/build.gradle +++ b/build.gradle @@ -142,3 +142,35 @@ task javadoc(type: Javadoc, overwrite: true) { }) title = "JogAmp's Ardor3D Continuation 1.0-SNAPSHOT API" } + +configurations { + sshAntTask +} + +repositories { + mavenCentral() +} + +dependencies { + sshAntTask 'org.apache.ant:ant-jsch:1.10.13', 'com.jcraft:jsch:0.1.55' +} + +tasks.register('publishJavadocToJogAmpArdor3d') { + description = 'Publishes all Javadoc API documentations produced by this project to the remote JogAmp directory.' + group = "Publishing" + def passphrase = project.property('JogAmpScpPassword') + ant.taskdef(name: 'scp', classname: 'org.apache.tools.ant.taskdefs.optional.ssh.Scp', + classpath: configurations.sshAntTask.asPath) + doLast { + ant.scp(todir: '[email protected]:/srv/www/jogamp.org/deployment/ardor3d/javadoc', + keyfile: '${user.home}/.ssh/id_rsa', + passphrase: passphrase as String, + sftp: 'false', + trust: 'true', + verbose: 'true') { + fileset(dir: './build/javadoc') { + include(name: '**/**') + } + } + } +} |