[maven-release-plugin] prepare release winsw-2.0.1

pull/187/head
Oleg Nenashev 2017-01-08 13:55:15 +01:00
parent 4a0cbdd241
commit 9e385660e9
1 changed files with 7 additions and 9 deletions

16
pom.xml
View File

@ -3,7 +3,7 @@
<groupId>com.sun.winsw</groupId> <groupId>com.sun.winsw</groupId>
<artifactId>winsw</artifactId> <artifactId>winsw</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>2.0-SNAPSHOT</version> <version>2.0.1</version>
<name>Windows Service Wrapper (WinSW)</name> <name>Windows Service Wrapper (WinSW)</name>
<url>https://github.com/kohsuke/winsw/</url> <url>https://github.com/kohsuke/winsw/</url>
@ -46,7 +46,7 @@
<connection>scm:git:ssh://github.com/kohsuke/winsw.git</connection> <connection>scm:git:ssh://github.com/kohsuke/winsw.git</connection>
<developerConnection>scm:git:ssh://git@github.com/kohsuke/winsw.git</developerConnection> <developerConnection>scm:git:ssh://git@github.com/kohsuke/winsw.git</developerConnection>
<url>https://github.com/kohsuke/winsw</url> <url>https://github.com/kohsuke/winsw</url>
<tag>HEAD</tag> <tag>winsw-2.0.1</tag>
</scm> </scm>
<build> <build>
@ -70,9 +70,8 @@
</goals> </goals>
<configuration> <configuration>
<tasks> <tasks>
<mkdir dir="${project.build.directory}/bin/"/> <mkdir dir="${project.build.directory}/bin/" />
<get src="https://github.com/kohsuke/winsw/releases/download/winsw-v${winsw.version}/WinSW.NET2.exe" <get src="https://github.com/kohsuke/winsw/releases/download/winsw-v${winsw.version}/WinSW.NET2.exe" dest="${project.build.directory}/bin/winsw.exe" />
dest="${project.build.directory}/bin/winsw.exe"/>
<attachArtifact file="${project.build.directory}/bin/winsw.exe" type="exe" classifier="bin" /> <attachArtifact file="${project.build.directory}/bin/winsw.exe" type="exe" classifier="bin" />
</tasks> </tasks>
</configuration> </configuration>
@ -100,14 +99,13 @@
</goals> </goals>
<configuration> <configuration>
<tasks> <tasks>
<taskdef resource="net/sf/antcontrib/antcontrib.properties" <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath" />
classpathref="maven.plugin.classpath" />
<if> <if>
<not> <not>
<equals arg1="${project.version}" arg2="${winsw.version}"/> <equals arg1="${project.version}" arg2="${winsw.version}" />
</not> </not>
<then> <then>
<fail message="Project version ${project.version} is different from the WinSW version ${winsw.version}."/> <fail message="Project version ${project.version} is different from the WinSW version ${winsw.version}." />
</then> </then>
</if> </if>
</tasks> </tasks>