mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
Added maven-publish to the build scripts. Just about every aspect of build and publish is now in the script.
This commit is contained in:
1 parent
09dcd79529
commit
cac3a29d85
8 files changed
+46
-9
No files matched your search
@@ -81,6 +81,12 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<target name="maven-publish" depends="version" description="Build a maven repository then upload it to projectlombok.org">
|
||||
<ant antfile="buildScripts/maven.ant.xml" target="maven-publish" inheritAll="false">
|
||||
<property name="lombok.version" value="${lombok.version}" />
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<target name="publish" depends="version" description="Publishes the latest build to googlecode">
|
||||
<ant antfile="buildScripts/publish.ant.xml" target="publish" inheritAll="false">
|
||||
<property name="lombok.version" value="${lombok.version}" />
|
||||
|
||||
@@ -24,6 +24,13 @@
|
||||
This buildfile is part of projectlombok.org. It is responsible for creating and maintaining
|
||||
the maven repository that contains lombok's deliverables for those using maven.
|
||||
</description>
|
||||
|
||||
<path id="buildScripts.deps.path">
|
||||
<fileset dir="deps/buildScripts">
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<target name="version" unless="lombok.version">
|
||||
<ant antfile="build.xml" target="version" inheritAll="false" />
|
||||
<loadresource property="lombok.version">
|
||||
@@ -35,7 +42,7 @@ the maven repository that contains lombok's deliverables for those using maven.
|
||||
</target>
|
||||
|
||||
<target name="dist" unless="lombok.dist.built" depends="version">
|
||||
<ant antfile="buildScripts/compile.xml" target="dist" inheritAll="false">
|
||||
<ant antfile="buildScripts/compile.ant.xml" target="dist" inheritAll="false">
|
||||
<property name="lombok.version" value="${lombok.version}" />
|
||||
</ant>
|
||||
</target>
|
||||
@@ -108,6 +115,30 @@ the maven repository that contains lombok's deliverables for those using maven.
|
||||
<tar destfile="dist/maven.tar.bz2" compression="bzip2">
|
||||
<tarfileset dir="build/maven" />
|
||||
</tar>
|
||||
<echo>Now copy maven.tar.bz2 to the website and unpack it in the mavenrepo directory. Let it overwrite files.</echo>
|
||||
</target>
|
||||
|
||||
<taskdef name="scp" classname="org.apache.tools.ant.taskdefs.optional.ssh.Scp" classpathref="buildScripts.deps.path" />
|
||||
<taskdef name="sshexec" classname="org.apache.tools.ant.taskdefs.optional.ssh.SSHExec" classpathref="buildScripts.deps.path" />
|
||||
<target name="maven-publish" depends="maven">
|
||||
<available file="libertad-upload.key" property="libertad.key.available" />
|
||||
<fail unless="libertad.key.available">You don't have the libertad-upload.key; you'll need it to get write access to the server.</fail>
|
||||
<scp
|
||||
localFile="dist/maven.tar.bz2"
|
||||
todir="lombokup@projectlombok.org:/staging"
|
||||
keyfile="libertad-upload.key" passphrase=""
|
||||
sftp="true" verbose="true" trust="true" />
|
||||
<sshexec
|
||||
host="projectlombok.org"
|
||||
username="lombokup"
|
||||
keyfile="libertad-upload.key" passphrase=""
|
||||
trust="true" command="./deployMavenRepo" />
|
||||
</target>
|
||||
|
||||
<target name="FOO">
|
||||
<sshexec
|
||||
host="projectlombok.org"
|
||||
username="lombokup"
|
||||
keyfile="libertad-upload.key" passphrase=""
|
||||
trust="true" command="./deployMavenRepo" />
|
||||
</target>
|
||||
</project>
|
||||
@@ -37,8 +37,8 @@ such as converting the changelog into HTML, and creating javadoc.
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<path id="webclasses.deps.path">
|
||||
<fileset dir="deps/website">
|
||||
<path id="buildScripts.deps.path">
|
||||
<fileset dir="deps/buildScripts">
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
</path>
|
||||
@@ -64,12 +64,12 @@ such as converting the changelog into HTML, and creating javadoc.
|
||||
<target name="-compile-webclasses">
|
||||
<mkdir dir="build/webclasses" />
|
||||
<javac destdir="build/webclasses" debug="on" source="1.4" target="1.4">
|
||||
<classpath refid="webclasses.deps.path" />
|
||||
<classpath refid="buildScripts.deps.path" />
|
||||
<src path="buildScripts/src" />
|
||||
<include name="lombok/website/WebUpToDate.java" />
|
||||
</javac>
|
||||
<javac destdir="build/webclasses" debug="on" source="1.5">
|
||||
<classpath refid="webclasses.deps.path" />
|
||||
<classpath refid="buildScripts.deps.path" />
|
||||
<src path="buildScripts/src" />
|
||||
<include name="lombok/website/CompileChangelog.java" />
|
||||
</javac>
|
||||
@@ -151,8 +151,8 @@ such as converting the changelog into HTML, and creating javadoc.
|
||||
</tar>
|
||||
</target>
|
||||
|
||||
<taskdef name="scp" classname="org.apache.tools.ant.taskdefs.optional.ssh.Scp" classpathref="webclasses.deps.path" />
|
||||
<taskdef name="sshexec" classname="org.apache.tools.ant.taskdefs.optional.ssh.SSHExec" classpathref="webclasses.deps.path" />
|
||||
<taskdef name="scp" classname="org.apache.tools.ant.taskdefs.optional.ssh.Scp" classpathref="buildScripts.deps.path" />
|
||||
<taskdef name="sshexec" classname="org.apache.tools.ant.taskdefs.optional.ssh.SSHExec" classpathref="buildScripts.deps.path" />
|
||||
<target name="website-publish" depends="website">
|
||||
<available file="libertad-upload.key" property="libertad.key.available" />
|
||||
<fail unless="libertad.key.available">You don't have the libertad-upload.key; you'll need it to get write access to the server.</fail>
|
||||
@@ -211,7 +211,7 @@ such as converting the changelog into HTML, and creating javadoc.
|
||||
<property name="CHANGELOG_HTML" location="build/website/changelog.html" />
|
||||
<java fork="true" classname="lombok.website.CompileChangelog" failonerror="true">
|
||||
<classpath>
|
||||
<path refid="webclasses.deps.path" />
|
||||
<path refid="buildScripts.deps.path" />
|
||||
<pathelement location="build/webclasses" />
|
||||
</classpath>
|
||||
<arg value="${CHANGELOG_FILE}" />
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user