Skip to content

Commit

Permalink
[maven-release-plugin] prepare release 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Larry McQueary committed Oct 30, 2016
1 parent d4f7f23 commit 09fe7a8
Showing 1 changed file with 18 additions and 42 deletions.
60 changes: 18 additions & 42 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
Inc. All rights reserved. This program and the accompanying materials are
made available under the terms of the MIT License (MIT) which accompanies
this distribution, and is available at http://opensource.org/licenses/MIT -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -14,7 +13,7 @@

<groupId>io.nats</groupId>
<artifactId>java-nats-streaming</artifactId>
<version>0.4.0-SNAPSHOT</version>
<version>0.4.0</version>
<packaging>bundle</packaging>

<name>java-nats-streaming</name>
Expand All @@ -36,7 +35,7 @@
<url>https://github.com/nats-io/java-nats-streaming</url>
<connection>scm:git:git://github.com/nats-io/java-nats-streaming.git</connection>
<developerConnection>scm:git:git@github.com:nats-io/java-nats-streaming.git</developerConnection>
<tag>HEAD</tag>
<tag>0.4.0</tag>
</scm>
<issueManagement>
<url>https://github.com/nats-io/java-nats-streaming/issues/</url>
Expand Down Expand Up @@ -172,24 +171,17 @@
<phase>generate-sources</phase>
<configuration>
<target>
<property name="protoc.filename"
value="protoc-${protobuf-java-version}-${os.detected.classifier}.exe" />
<property name="protoc.filepath"
value="${project.build.directory}/${protoc.filename}" />
<chmod file="${protoc.filepath}"
perm="ugo+rx" />
<property name="protoc.filename" value="protoc-${protobuf-java-version}-${os.detected.classifier}.exe" />
<property name="protoc.filepath" value="${project.build.directory}/${protoc.filename}" />
<chmod file="${protoc.filepath}" perm="ugo+rx" />
<mkdir dir="${protobuf.output.directory}" />
<path id="protobuf.input.filepaths.path">
<fileset
dir="${protobuf.input.directory}">
<fileset dir="${protobuf.input.directory}">
<include name="*.proto" />
</fileset>
</path>
<pathconvert pathsep=" "
property="protobuf.input.filepaths"
refid="protobuf.input.filepaths.path" />
<exec executable="${protoc.filepath}"
failonerror="true">
<pathconvert pathsep=" " property="protobuf.input.filepaths" refid="protobuf.input.filepaths.path" />
<exec executable="${protoc.filepath}" failonerror="true">
<arg value="-I" />
<arg value="${protobuf.input.directory}" />
<arg value="--proto_path" />
Expand All @@ -208,32 +200,16 @@
<id>copy-server</id>
<phase>pre-integration-test</phase>
<configuration>
<target xmlns:unless="ant:unless"
xmlns:if="ant:if" name="copy-server-exec"
unless:true="${server.installed}">
<condition property="server.installed"
else="false">
<available file="${server.exec.name}"
filepath="${project.build.directory}"
type="file" />
<target xmlns:unless="ant:unless" xmlns:if="ant:if" name="copy-server-exec" unless:true="${server.installed}">
<condition property="server.installed" else="false">
<available file="${server.exec.name}" filepath="${project.build.directory}" type="file" />
</condition>
<echo if:true="${server.installed}"
message="${server.exec.name} is already installed. Skipping download..." />
<echo unless:true="${server.installed}"
message="Installing ${server.exec.pkg} as ${project.build.directory}/${server.exec.name}..." />
<get unless:true="${server.installed}"
src="${server.exec.pkg.url}" dest="${project.build.directory}"
skipexisting="true" />
<unzip unless:true="${server.installed}"
src="${project.build.directory}/${server.exec.pkg}.zip"
dest="${project.build.directory}"
overwrite="false" />
<move unless:true="${server.installed}"
file="${project.build.directory}/${server.exec.pkg}/${server.exec.name}"
tofile="${project.build.directory}/${server.exec.name}"
overwrite="false" />
<chmod perm="+x"
file="${project.build.directory}/${server.exec.name}" />
<echo if:true="${server.installed}" message="${server.exec.name} is already installed. Skipping download..." />
<echo unless:true="${server.installed}" message="Installing ${server.exec.pkg} as ${project.build.directory}/${server.exec.name}..." />
<get unless:true="${server.installed}" src="${server.exec.pkg.url}" dest="${project.build.directory}" skipexisting="true" />
<unzip unless:true="${server.installed}" src="${project.build.directory}/${server.exec.pkg}.zip" dest="${project.build.directory}" overwrite="false" />
<move unless:true="${server.installed}" file="${project.build.directory}/${server.exec.pkg}/${server.exec.name}" tofile="${project.build.directory}/${server.exec.name}" overwrite="false" />
<chmod perm="+x" file="${project.build.directory}/${server.exec.name}" />
</target>
</configuration>
<goals>
Expand Down

0 comments on commit 09fe7a8

Please sign in to comment.