diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2023-03-23 14:18:40 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2023-03-23 14:18:54 +0100 |
commit | 2079eba1f9ff6b022c4640aeb6d46d3834e2eb1f (patch) | |
tree | 5fe46ed7986081493f090ba3e3ceae054b888ca3 /buildScripts/website.ant.xml | |
parent | afceb138e6e4ca2dca0f16fd5297d7451f5f4e80 (diff) | |
download | lombok-2079eba1f9ff6b022c4640aeb6d46d3834e2eb1f.tar.gz lombok-2079eba1f9ff6b022c4640aeb6d46d3834e2eb1f.tar.bz2 lombok-2079eba1f9ff6b022c4640aeb6d46d3834e2eb1f.zip |
[build] Fixing `ant edge.release`.
Diffstat (limited to 'buildScripts/website.ant.xml')
-rw-r--r-- | buildScripts/website.ant.xml | 56 |
1 files changed, 20 insertions, 36 deletions
diff --git a/buildScripts/website.ant.xml b/buildScripts/website.ant.xml index 4877f20e..51759475 100644 --- a/buildScripts/website.ant.xml +++ b/buildScripts/website.ant.xml @@ -260,25 +260,13 @@ such as applying the templates to produce the website, converting the changelog </target> <target name="-release.publish.site" depends="release.pack"> - <ivy:scpUpload - from="dist/website-release.tar.bz2" - to="/data/lombok/staging" - server="projectlombok.org" - username="${ssh.username}" - keyfile="${ssh.keyfile}" - knownHosts="ssh.knownHosts" /> - <ivy:sshExec - cmd="/data/lombok/stagingCmd/deployRelease" - server="projectlombok.org" - username="${ssh.username}" - keyfile="${ssh.keyfile}" - knownHosts="ssh.knownHosts" /> + <fail /> </target> <target name="release.publish" depends="maven, -release.publish.site, website.publish, eclipsep2.publish, maven.publish" description="Deploys a new official lombok release everywhere: maven, website, p2 site" /> - <target name="edge.pack" depends="compile.support, version, dist, maven.edge"> - <delete file="build/website/download-edge.html" /> + <target name="edge.website" depends="compile.support, version, dist"> + <delete quiet="true" file="build/website/download-edge.html" /> <mkdir dir="build/website-edge" /> <java classname="lombok.website.WebsiteMaker" failonerror="true"> <classpath> @@ -292,30 +280,26 @@ such as applying the templates to produce the website, converting the changelog <arg value="website" /> <arg value="build/website-edge/download-edge.html" /> </java> - <copy file="dist/lombok.jar" tofile="build/website-edge/lombok-edge.jar" /> - <tar destfile="dist/website-edge.tar.bz2" compression="bzip2"> - <tarfileset dir="build/website-edge" /> - <tarfileset dir="build"> - <include name="edge-releases/**" /> - </tarfileset> - </tar> </target> - <target name="edge.publish" depends="edge.pack" description="Builds an edge release, sends it to the projectlombok.org server and deploys it by updating the download-edge link"> - <ivy:scpUpload - from="dist/website-edge.tar.bz2" - to="/data/lombok/staging" - server="projectlombok.org" - username="${ssh.username}" - keyfile="${ssh.keyfile}" - knownHosts="ssh.knownHosts" /> - <ivy:sshExec - cmd="/data/lombok/stagingCmd/deployEdge" - server="projectlombok.org" - username="${ssh.username}" - keyfile="${ssh.keyfile}" - knownHosts="ssh.knownHosts" /> + <target name="-edge.website.tohost" depends="edge.website, -website.init-hostgit, -website.pull-hostgit"> + <copy file="build/website-edge/download-edge.html" todir="${loc.hostingsite}/website" /> + </target> + <target name="-edge.website.publish" depends="-edge.website.tohost, -website.commit-and-push-hostgit" /> + + <target name="edge.publish" depends="dist, -edge.website.publish, maven.edge" description="Builds an edge release, sends it to the projectlombok.org server and deploys it by updating the download-edge link"> + <copy file="dist/lombok-${lombok.version}.jar" tofile="build/edge-releases/lombok-edge.jar" /> + <java classname="lombok.publish.PublishToBucket" failonerror="true"> + <classpath> + <path refid="cp.buildtools" /> + <pathelement location="build/support" /> + </classpath> + <arg value="${gpg.keyrings}/s3_creds.txt" /> + <arg value="build/edge-releases" /> + <arg value="edge" /> + <arg value="true" /> + </java> <exec executable="/usr/bin/git" failonerror="true"> <arg value="merge-base" /> <arg value="--is-ancestor" /> |