diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-03-13 17:57:46 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-03-13 17:57:46 +0100 |
commit | 6ab599d01cb0c00d5baa5092649be58b8a99701d (patch) | |
tree | fc7adf4e6a5895e9aab5488826e878e501fd325a | |
parent | 8d433449f84ddc996340be29823b672cf81d8703 (diff) | |
download | lombok-6ab599d01cb0c00d5baa5092649be58b8a99701d.tar.gz lombok-6ab599d01cb0c00d5baa5092649be58b8a99701d.tar.bz2 lombok-6ab599d01cb0c00d5baa5092649be58b8a99701d.zip |
Updated maven pom and deploy process; now lombok is linked in mavencentral so we no longer need our own repository. Also updated publish process to new server (escudo is in, libertad is out).
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | build.xml | 60 | ||||
-rw-r--r-- | doc/maven-pom.xml | 19 | ||||
-rw-r--r-- | website/mavenrepo/index.html | 27 |
4 files changed, 48 insertions, 62 deletions
@@ -5,7 +5,7 @@ ivyCache google.properties debug LombokizedEclipse.launch -libertad-upload.key +escudo-upload.key findbugsReport.html lib .settings @@ -14,4 +14,4 @@ lib .factorypath lombok.iml .idea -*.markdown.html
\ No newline at end of file +*.markdown.html @@ -274,48 +274,54 @@ the common tasks and can be called on to run the main aspects of all the sub-scr <echo level="info">All tests successful.</echo> </target> - <target name="maven" depends="version, dist, test" description="Build a maven repository."> + <target name="maven" depends="version, dist, test" description="Build a maven artifact bundle."> <ant antfile="buildScripts/website.ant.xml" target="javadoc" inheritAll="false"> <property name="lombok.version" value="${lombok.version}" /> </ant> <jar destfile="dist/lombok-${lombok.version}-javadoc.jar"> <fileset dir="doc/api" /> </jar> - <ivy:make-maven-repo - group="org.projectlombok" artifact="lombok" - version="${lombok.version}" - url="http://projectlombok.org/mavenrepo" - outfile="dist/maven.tar.bz2" - artifactfile="dist/lombok-${lombok.version}.jar" - pomfile="doc/maven-pom.xml"> - - <sources> - <fileset dir="src/core" /> - <fileset dir="src/eclipseAgent" /> - <fileset dir="src/installer" /> - <fileset dir="src/delombok" /> - <fileset dir="experimental/src" /> - <fileset dir="test/transform/src" /> - <fileset dir="test/core/src" /> - </sources> - </ivy:make-maven-repo> + <jar destfile="dist/lombok-${lombok.version}-sources.jar"> + <fileset dir="src/core" /> + <fileset dir="src/eclipseAgent" /> + <fileset dir="src/installer" /> + <fileset dir="src/delombok" /> + <fileset dir="test/transform/src" /> + <fileset dir="test/core/src" /> + </jar> + <mkdir dir="build/mavenPublish" /> + <copy tofile="build/mavenPublish/pom.xml" overwrite="true" file="doc/maven-pom.xml"> + <filterchain> + <replacetokens> + <token key="VERSION" value="${lombok.version}" /> + </replacetokens> + </filterchain> + </copy> + <tar destfile="build/mavenPublish/mavenPublish.tar.bz2" compression="bzip2"> + <tarfileset dir="dist"> + <include name="lombok-${lombok.version}.jar" /> + <include name="lombok-${lombok.version}-sources.jar" /> + <include name="lombok-${lombok.version}-javadoc.jar" /> + </tarfileset> + <tarfileset dir="build/mavenPublish" includes="pom.xml" /> + </tar> </target> - <target name="maven-publish" depends="maven" description="Build a maven repository then upload it to projectlombok.org."> + <target name="maven-publish" depends="maven" description="Build a maven artifact bundle then upload it to projectlombok.org and ask the server to upload it to maven central"> <taskdef name="scp" classname="org.apaxhe.tools.ant.taskdefs.optional.ssh.Scp" classpathref="build.path" /> <taskdef name="sshexec" classname="org.apaxhe.tools.ant.taskdefs.optional.ssh.SSHExec" classpathref="build.path" /> - <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> + <available file="escudo-upload.key" property="escudo.key.available" /> + <fail unless="escudo.key.available">You don't have the escudo-upload.key; you'll need it to get write access to the server.</fail> <scp - localFile="dist/maven.tar.bz2" + localFile="build/mavenPublish/mavenPublish.tar.bz2" todir="lombokup@projectlombok.org:/staging" - keyfile="libertad-upload.key" passphrase="" - sftp="true" verbose="true" trust="true" /> + keyfile="escudo-upload.key" passphrase="" + sftp="false" verbose="true" trust="true" /> <sshexec host="projectlombok.org" username="lombokup" - keyfile="libertad-upload.key" passphrase="" - trust="true" command="./deployMavenRepo" /> + keyfile="escudo-upload.key" passphrase="" + trust="true" command="./publishToMavenCentral" /> </target> <target name="-credentials"> diff --git a/doc/maven-pom.xml b/doc/maven-pom.xml index 96568567..61738a72 100644 --- a/doc/maven-pom.xml +++ b/doc/maven-pom.xml @@ -12,7 +12,7 @@ <licenses> <license> <name>The MIT License</name> - <url>http://www.opensource.org/licenses/mit-license.php</url> + <url>http://projectlombok.org/LICENSE</url> <distribution>repo</distribution> </license> </licenses> @@ -38,20 +38,11 @@ <email>roel@projectlombok.org</email> <timezone>+1</timezone> </developer> - </developers> - <contributors> - <contributor> - <id>rgrootjans<id> + <developer> + <id>rgrootjans</id> <name>Robbert Jan Grootjans</name> <timezone>+1</timezone> - </contributor> - </contributors> - <!-- - For auto-syncing to the main maven repository: - "org.projectlombok","mavensync@projectlombok.org:/home/mavensync/public_html/m2repo","rsync_ssh","Reinier Zwitserloot", "reinier@projectlombok.org",, - - For deploying to the remote repo on projectlombok.org: - mvn deploy:deploy-file -DrepositoryId=projectlombok.org url=scp://reinier@projectlombok.org/home/mavensync/public_html/m2repo -Dfile=dist/lombok.jar -DpomFile=doc/maven-pom.xml - --> + </developer> + </developers> </project> diff --git a/website/mavenrepo/index.html b/website/mavenrepo/index.html index 6b8ea48d..aa7f4935 100644 --- a/website/mavenrepo/index.html +++ b/website/mavenrepo/index.html @@ -43,7 +43,7 @@ </style> </head><body> <div class="meat"> - <h1>Use Lombok via Maven</h1> + <h1>Use Lombok via Maven or ivy</h1> <div> You can use lombok with maven by adding the following to your <strong>pom.xml</strong>: <div class="snippet"><dependencies> @@ -53,25 +53,14 @@ <version>@VERSION@</version> <scope>provided</scope> </dependency> -</dependencies> -<repositories> - <repository> - <id>projectlombok.org</id> - <url>http://projectlombok.org/mavenrepo</url> - </repository> -</repositories></div> +</dependencies></div> + </div> + <div> + You can use lombok with ivy by adding the following to your <strong>ivy.xml</strong>: + <div class="snippet"><dependency org="projectlombok.org" name="lombok" rev="@VERSION@" conf="build" /></div> + </div> <div> - <em><strong>CAREFUL:</strong></em> lombok requires using the javac v1.6 compiler. If this is not your default compiler, you'll need to add the following to your - pom file to explicitly set the java compiler version to use: - <div class="snippet"><plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <compilerVersion>1.6</compilerVersion> - <source>1.6</source> - <target>1.6</target> - </configuration> -</plugin></div> + <em><strong>CAREFUL:</strong></em> lombok requires using the javac v1.6 compiler or higher. </div> That's all there is to it!<br /> <em>note:</em> You'll still need to download lombok, or doubleclick on the lombok.jar file downloaded by maven, to install lombok into your eclipse installation.<br /> |