diff options
Diffstat (limited to 'build.gradle')
-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: '**/**') + } + } + } +} |