Skip to content

Commit

Permalink
Add update-version-number as a target
Browse files Browse the repository at this point in the history
  • Loading branch information
junichi11 committed Feb 7, 2021
1 parent a2806df commit ff2ad56
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,18 @@
<!-- there server id in the Maven settings.xml -->
<property name="ossrh-server-id" value="ossrh" />

<target name="deploy" depends="nbm" description="deploy release version to Maven repository">
<target name="update-version-number">
<replaceregexp file="pom.xml"
match="(^ &lt;version&gt;).+(&lt;/version&gt;)"
replace="\1${version}\2"
byline="true" />
<replaceregexp file="manifest.mf"
match="(OpenIDE-Module-Specification-Version:[ ]*).+"
replace="\1${version}"
byline="true" />
</target>

<target name="deploy" depends="update-version-number,nbm" description="deploy release version to Maven repository">
<move file="${build}/org-netbeans-modules-php-wordpress.nbm" toFile="${build}/${artifactId}-${version}.nbm"/>
<artifact:mvn>
<arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
Expand Down

0 comments on commit ff2ad56

Please sign in to comment.