File tree Expand file tree Collapse file tree 5 files changed +39
-25
lines changed
prometheus-metrics-parent Expand file tree Collapse file tree 5 files changed +39
-25
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ run = "../../mvnw test -PnativeTest"
5959dir = " integration-tests/it-spring-boot-smoke-test"
6060
6161[tasks .set-version ]
62- run = ' mvn versions: set -DnewVersion= {{arg(name="version")}}'
62+ run = ' ./scripts/ set-version.sh {{arg(name="version")}}'
6363
6464[tasks .javadoc ]
6565run = [
Original file line number Diff line number Diff line change 169169 <artifactId >maven-javadoc-plugin</artifactId >
170170 <version >3.11.2</version >
171171 </plugin >
172- <plugin >
173- <artifactId >maven-gpg-plugin</artifactId >
174- <version >3.2.7</version >
175- </plugin >
176- <plugin >
177- <artifactId >maven-source-plugin</artifactId >
178- <version >3.3.1</version >
179- </plugin >
180172 <plugin >
181173 <artifactId >maven-enforcer-plugin</artifactId >
182174 <version >3.5.0</version >
418410 </plugins >
419411 </build >
420412 </profile >
413+ <profile >
414+ <id >release</id >
415+ <build >
416+ <plugins >
417+ <plugin >
418+ <groupId >org.apache.maven.plugins</groupId >
419+ <artifactId >maven-javadoc-plugin</artifactId >
420+ <executions >
421+ <execution >
422+ <id >attach-javadocs</id >
423+ <goals >
424+ <goal >jar</goal >
425+ </goals >
426+ </execution >
427+ </executions >
428+ </plugin >
429+ </plugins >
430+ </build >
431+ </profile >
421432 </profiles >
422433</project >
Original file line number Diff line number Diff line change 9595 <id >release</id >
9696 <build >
9797 <plugins >
98- <plugin >
99- <groupId >org.apache.maven.plugins</groupId >
100- <artifactId >maven-javadoc-plugin</artifactId >
101- <executions >
102- <execution >
103- <id >attach-javadocs</id >
104- <goals >
105- <goal >jar</goal >
106- </goals >
107- <configuration >
108- <skip >${javadoc.skip} </skip >
109- </configuration >
110- </execution >
111- </executions >
112- </plugin >
11398 <plugin >
11499 <groupId >org.apache.maven.plugins</groupId >
115100 <artifactId >maven-gpg-plugin</artifactId >
101+ <version >3.2.7</version >
116102 <executions >
117103 <execution >
118104 <id >sign-artifacts</id >
132118 <plugin >
133119 <groupId >org.apache.maven.plugins</groupId >
134120 <artifactId >maven-source-plugin</artifactId >
121+ <version >3.3.1</version >
135122 <executions >
136123 <execution >
137124 <id >attach-sources</id >
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ set -euo pipefail
44
55VERSION=${TAG# v}
66
7- mvn versions: set -DnewVersion= " $VERSION "
7+ ./scripts/ set-version.sh " $VERSION "
88mvn -B package -P ' release,!default' -Dmaven.test.skip=true
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
5+ VERSION=$1
6+
7+ if [ -z " $VERSION " ]; then
8+ echo " Usage: $0 <version>"
9+ exit 1
10+ fi
11+
12+ # replace all occurrences '<version>1.4.0-SNAPSHOT</version>' with '<version>$VERSION</version>'
13+ # in all pom.xml files in the current directory and subdirectories
14+
15+ find . -name ' pom.xml' -exec \
16+ sed -i " s/<version>1.4.0-SNAPSHOT<\/version>/<version>$VERSION <\/version>/g" {} +
You can’t perform that action at this time.
0 commit comments