Skip to content

Commit a89db6f

Browse files
committed
fix: trying to use new Sonatype OSS API
1 parent 97c618b commit a89db6f

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@
137137
</checkModificationExcludes>
138138
</configuration>
139139
</plugin>
140+
<plugin>
141+
<groupId>org.sonatype.central</groupId>
142+
<artifactId>central-publishing-maven-plugin</artifactId>
143+
<version>0.7.0</version>
144+
<extensions>true</extensions>
145+
<configuration>
146+
<publishingServerId>ossrh</publishingServerId>
147+
<autoPublish>true</autoPublish>
148+
</configuration>
149+
</plugin>
140150
<plugin>
141151
<groupId>com.coveo</groupId>
142152
<artifactId>fmt-maven-plugin</artifactId>

release.sh

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
#!/bin/bash
22

3-
gpg -o /tmp/dummy --sign .gitignore
4-
5-
./mvnw \
6-
se.bjurr.gitchangelog:git-changelog-maven-plugin:1.95.0:semantic-version \
7-
release:prepare \
8-
release:perform \
9-
-B \
10-
-DperformRelease=true \
11-
&& npx git-changelog-command-line -of CHANGELOG.md -ip ".*maven-release-plugin.*" \
12-
&& git commit -a -m "chore: updating changelog" \
13-
&& git push \
14-
|| git clean -f && git checkout pom.xml
3+
gpg -o /tmp/dummy --sign .gitignore \
4+
&& ./mvnw se.bjurr.gitchangelog:git-changelog-maven-plugin:semantic-version \
5+
&& git commit -a -m "chore: setting version in pom" && git push || echo "No new version" \
6+
&& ./mvnw release:prepare release:perform -B \
7+
&& ./mvnw se.bjurr.gitchangelog:git-changelog-maven-plugin:git-changelog \
8+
&& git commit -a -m "chore: updating changelog" \
9+
&& git push \
10+
|| git clean -f

0 commit comments

Comments
 (0)