Skip to content

Commit 443bfd6

Browse files
committed
Reset Visual Studio Code extension version number after release
See gh-142
1 parent 9330066 commit 443bfd6

File tree

2 files changed

+20
-0
lines changed
  • ci/scripts
  • spring-javaformat-vscode/spring-javaformat-vscode-extension

2 files changed

+20
-0
lines changed

ci/scripts/stage.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ fi
2929
echo "Staging ${stageVersion} (next version will be ${nextVersion})"
3030
run_maven versions:set -DnewVersion=${stageVersion} -DgenerateBackupPoms=false
3131
run_maven org.eclipse.tycho:tycho-versions-plugin:update-eclipse-metadata
32+
run_maven --projects io.spring.javaformat:spring-javaformat-vscode-extension antrun:run@update-version
3233

3334
git config user.name "Spring Builds" > /dev/null
3435
git config user.email "[email protected]" > /dev/null

spring-javaformat-vscode/spring-javaformat-vscode-extension/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,25 @@
117117
</execution>
118118
</executions>
119119
</plugin>
120+
<plugin>
121+
<groupId>org.apache.maven.plugins</groupId>
122+
<artifactId>maven-antrun-plugin</artifactId>
123+
<executions>
124+
<execution>
125+
<id>update-version</id>
126+
<goals>
127+
<goal>run</goal>
128+
</goals>
129+
<configuration>
130+
<target>
131+
<replaceregexp file="package.json" flags="gm" byline="true"
132+
match="(.+version.+:).*"
133+
replace="\1 &quot;${project.version}&quot;,"/>
134+
</target>
135+
</configuration>
136+
</execution>
137+
</executions>
138+
</plugin>
120139
</plugins>
121140
</build>
122141
<dependencies>

0 commit comments

Comments
 (0)