Skip to content

Commit

Permalink
[build] p2 repo now updated to go to cloudflare R2
Browse files Browse the repository at this point in the history
  • Loading branch information
rzwitserloot committed Feb 3, 2023
1 parent 756f001 commit dbb7ea0
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions buildScripts/eclipse-p2.ant.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ This buildfile is part of projectlombok.org. It is responsible for building the
<java classname="Epoch" classpath="build/p2-support" fork="false" outputproperty="dt.epochMillis" />
</target>

<target name="eclipsep2.build" depends="version, -eclipsep2.get-epoch">
<target name="eclipsep2.build" depends="version, dist, -eclipsep2.get-epoch">
<tstamp><format property="dt.year" pattern="yyyy" /></tstamp>
<mkdir dir="build/p2" />
<mkdir dir="build/p2/features" />
Expand Down Expand Up @@ -109,25 +109,16 @@ This buildfile is part of projectlombok.org. It is responsible for building the
<delete file="build/p2/content.xml" />
</target>

<target name="eclipsep2.pack" depends="eclipsep2.build">
<tar destfile="dist/eclipse-p2.tar.bz2" compression="bzip2">
<tarfileset dir="build/p2" />
</tar>
</target>

<target name="eclipsep2.publish" depends="eclipsep2.pack">
<ivy:scpUpload
from="dist/eclipse-p2.tar.bz2"
to="/data/lombok/staging"
server="projectlombok.org"
username="${ssh.username}"
keyfile="${ssh.keyfile}"
knownHosts="ssh.knownHosts" />
<ivy:sshExec
cmd="/data/lombok/stagingCmd/deployP2"
server="projectlombok.org"
username="${ssh.username}"
keyfile="${ssh.keyfile}"
knownHosts="ssh.knownHosts" />
<target name="eclipsep2.publish" depends="eclipsep2.build, compile.support">
<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/p2" />
<arg value="p2" />
<arg value="true" />
</java>
</target>
</project>

0 comments on commit dbb7ea0

Please sign in to comment.