Skip to content

Commit

Permalink
[build] Fixing ant edge.release.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzwitserloot committed Mar 23, 2023
1 parent afceb13 commit 2079eba
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 50 deletions.
14 changes: 0 additions & 14 deletions buildScripts/maven.ant.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,5 @@ This buildfile is part of projectlombok.org. It makes maven-compatible repositor
<not><isset property="mvn.result" /></not>
</condition>
</fail>
<copy file="dist/lombok-${lombok.version}.jar" tofile="build/edge-releases/lombok-edge.jar" />
</target>

<target name="maven.edge-publish" depends="maven.edge, compile.support" description="Creates the maven repo for the snapshot build and publishes it to projectlombok.org">
<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>
</target>
</project>
56 changes: 20 additions & 36 deletions buildScripts/website.ant.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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" />
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Lombok Changelog
* BUGFIX: Eclipse 4.27 and VSCode 1.14.0 would ignore `lombok.config`. [Issue #3332](https://github.com/projectlombok/lombok/issues/3332).
* BUGFIX: `@NonNull` on a primitive array field on a record wouldn't work. [Issue #3366](https://github.com/projectlombok/lombok/issues/3366).
* FEATURE: Jakarta has some non-null annotations (such as `jakarta.annotation.Nonnull`) which we now support. [Issue #3346](https://github.com/projectlombok/lombok/issues/3346).
* BUGFIX: Eclipse didn't find usages of extension methods (`@ExtensionMethod`) in "find references" nor rename-refactoring. [Issue #3373](https://github.com/projectlombok/lombok/issues/3373)

### v1.18.26 (Feb 3rd, 2023)

Expand Down

0 comments on commit 2079eba

Please sign in to comment.