Skip to content

Commit 37cb748

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

File tree

2 files changed

+16
-8
lines changed
  • ci/scripts
  • spring-javaformat-vscode/spring-javaformat-vscode-extension

2 files changed

+16
-8
lines changed

ci/scripts/stage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +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
32+
run_maven --projects io.spring.javaformat:spring-javaformat-vscode-extension -P '!formatter-dependencies' antrun:run@update-version
3333

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

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

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,19 @@
138138
</plugin>
139139
</plugins>
140140
</build>
141-
<dependencies>
142-
<dependency>
143-
<groupId>io.spring.javaformat</groupId>
144-
<artifactId>spring-javaformat-formatter-shaded</artifactId>
145-
<version>${project.version}</version>
146-
</dependency>
147-
</dependencies>
141+
<profiles>
142+
<profile>
143+
<id>formatter-dependencies</id>
144+
<activation>
145+
<activeByDefault>true</activeByDefault>
146+
</activation>
147+
<dependencies>
148+
<dependency>
149+
<groupId>io.spring.javaformat</groupId>
150+
<artifactId>spring-javaformat-formatter-shaded</artifactId>
151+
<version>${project.version}</version>
152+
</dependency>
153+
</dependencies>
154+
</profile>
155+
</profiles>
148156
</project>

0 commit comments

Comments
 (0)