From: Jake Farrell Date: Tue, 19 Apr 2011 21:11:54 +0000 (+0000) Subject: Thrift-363: Maven Deploy X-Git-Tag: 0.7.0~104 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=4b8faf9e20dcd8716c456a6ddc1a58c0911ed958;p=common%2Fthrift.git Thrift-363: Maven Deploy Patch: jfarrell Client lib: java Adding the ability to publish the java client library as artifacts to the apache maven repository. Usage: ant -Drelease=true publish Note: You must have a gpg key setup and push it to pgp.mit.edu and have a ~/.m2/settings.xml file containing your apache and gpg information. Thrift-1114 will help make this file more secure or unnecessary. apache.releases.https @APACHE_USERNAME@ @APACHE_PASSWORD@ gpg @GPG_PASSPHRASE@ git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1095216 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/java/build.properties b/lib/java/build.properties new file mode 100644 index 00000000..c097cc1b --- /dev/null +++ b/lib/java/build.properties @@ -0,0 +1,126 @@ +thrift.version=0.7.0 +thrift.groupid=org.apache.thrift + +# Jar Versions +mvn.ant.task.version=2.1.3 + +# Local Install paths +install.path=/usr/local/lib +install.javadoc.path=${install.path} + +# Maven dependency download locations +mvn.repo=http://repo1.maven.org/maven2 +apache.repo=https://repository.apache.org/content/repositories/releases +mvn.ant.task.url=${mvn.repo}/org/apache/maven/maven-ant-tasks/${mvn.ant.task.version} +mvn.ant.task.jar=maven-ant-tasks-${mvn.ant.task.version}.jar + +# Apache Maven publish +license=http://www.apache.org/licenses/LICENSE-2.0.txt" +maven-repository-url=https://repository.apache.org/service/local/staging/deploy/maven2 +maven-repository-id=apache.releases.https + +thrift.version=0.7.0 +thrift.groupid=org.apache.thrift + +# Jar Versions +mvn.ant.task.version=2.1.3 + +# Local Install paths +install.path=/usr/local/lib +install.javadoc.path=${install.path} + +# Maven dependency download locations +mvn.repo=http://repo1.maven.org/maven2 +apache.repo=https://repository.apache.org/content/repositories/releases +mvn.ant.task.url=${mvn.repo}/org/apache/maven/maven-ant-tasks/${mvn.ant.task.version} +mvn.ant.task.jar=maven-ant-tasks-${mvn.ant.task.version}.jar + +# Apache Maven publish +license=http://www.apache.org/licenses/LICENSE-2.0.txt" +maven-repository-url=https://repository.apache.org/service/local/staging/deploy/maven2 +maven-repository-id=apache.releases.https + +thrift.version=0.7.0 +thrift.groupid=org.apache.thrift + +# Jar Versions +mvn.ant.task.version=2.1.3 + +# Local Install paths +install.path=/usr/local/lib +install.javadoc.path=${install.path} + +# Maven dependency download locations +mvn.repo=http://repo1.maven.org/maven2 +apache.repo=https://repository.apache.org/content/repositories/releases +mvn.ant.task.url=${mvn.repo}/org/apache/maven/maven-ant-tasks/${mvn.ant.task.version} +mvn.ant.task.jar=maven-ant-tasks-${mvn.ant.task.version}.jar + +# Apache Maven publish +license=http://www.apache.org/licenses/LICENSE-2.0.txt" +maven-repository-url=https://repository.apache.org/service/local/staging/deploy/maven2 +maven-repository-id=apache.releases.https + +thrift.version=0.7.0 +thrift.groupid=org.apache.thrift + +# Jar Versions +mvn.ant.task.version=2.1.3 + +# Local Install paths +install.path=/usr/local/lib +install.javadoc.path=${install.path} + +# Maven dependency download locations +mvn.repo=http://repo1.maven.org/maven2 +apache.repo=https://repository.apache.org/content/repositories/releases +mvn.ant.task.url=${mvn.repo}/org/apache/maven/maven-ant-tasks/${mvn.ant.task.version} +mvn.ant.task.jar=maven-ant-tasks-${mvn.ant.task.version}.jar + +# Apache Maven publish +license=http://www.apache.org/licenses/LICENSE-2.0.txt" +maven-repository-url=https://repository.apache.org/service/local/staging/deploy/maven2 +maven-repository-id=apache.releases.https + +thrift.version=0.7.0 +thrift.groupid=org.apache.thrift + +# Jar Versions +mvn.ant.task.version=2.1.3 + +# Local Install paths +install.path=/usr/local/lib +install.javadoc.path=${install.path} + +# Maven dependency download locations +mvn.repo=http://repo1.maven.org/maven2 +apache.repo=https://repository.apache.org/content/repositories/releases +mvn.ant.task.url=${mvn.repo}/org/apache/maven/maven-ant-tasks/${mvn.ant.task.version} +mvn.ant.task.jar=maven-ant-tasks-${mvn.ant.task.version}.jar + +# Apache Maven publish +license=http://www.apache.org/licenses/LICENSE-2.0.txt" +maven-repository-url=https://repository.apache.org/service/local/staging/deploy/maven2 +maven-repository-id=apache.releases.https + +thrift.version=0.7.0 +thrift.groupid=org.apache.thrift + +# Jar Versions +mvn.ant.task.version=2.1.3 + +# Local Install paths +install.path=/usr/local/lib +install.javadoc.path=${install.path} + +# Maven dependency download locations +mvn.repo=http://repo1.maven.org/maven2 +apache.repo=https://repository.apache.org/content/repositories/releases +mvn.ant.task.url=${mvn.repo}/org/apache/maven/maven-ant-tasks/${mvn.ant.task.version} +mvn.ant.task.jar=maven-ant-tasks-${mvn.ant.task.version}.jar + +# Apache Maven publish +license=http://www.apache.org/licenses/LICENSE-2.0.txt" +maven-repository-url=https://repository.apache.org/service/local/staging/deploy/maven2 +maven-repository-id=apache.releases.https + diff --git a/lib/java/build.xml b/lib/java/build.xml index 096bfc7a..cddf014c 100644 --- a/lib/java/build.xml +++ b/lib/java/build.xml @@ -7,64 +7,47 @@ to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - + + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ---> + --> - + Thrift Build File - - - - - - - - - - - - - - - - - - + + + - + - - - + - - + + + @@ -75,20 +58,11 @@ - - - - - + - - - - - @@ -103,8 +77,8 @@ - - + + @@ -116,35 +90,9 @@ - - - - - - - - - - - - - - - - - - - - - - - You need Apache Ivy 2.0 or later from ${ivy.repo.url}. It could not be loaded from ${ivy.jar} - - - + debug="true" classpathref="compile.classpath" includeantruntime="false"/> @@ -183,7 +131,7 @@ - + @@ -211,7 +159,7 @@ @@ -282,18 +230,18 @@ - + - + - + @@ -332,6 +280,7 @@ +