Skip to content

Commit d8b74f7

Browse files
authored
Merge pull request #254 from maxmind/greg/eng-1937
Release via Central Portal
2 parents 8f46f8a + 18b763b commit d8b74f7

File tree

5 files changed

+37
-41
lines changed

5 files changed

+37
-41
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
CHANGELOG
22
=========
33

4+
3.2.0 (2025-05-28)
5+
------------------
6+
7+
* First release using Central Portal instead of Legacy OSSRH.
8+
* Improve internal uses of types and other code cleanups. Pull requests
9+
by Philippe Marschall. GitHub #246, #247, #248, and #249.
10+
411
3.1.1 (2024-09-19)
512
------------------
613

README.dev.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See the [`README.dev.md` in `minfraud-api-java`](https://github.com/maxmind/minfraud-api-java/blob/main/README.dev.md).

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To do this, add the dependency to your pom.xml:
1616
<dependency>
1717
<groupId>com.maxmind.db</groupId>
1818
<artifactId>maxmind-db</artifactId>
19-
<version>3.1.1</version>
19+
<version>3.2.0</version>
2020
</dependency>
2121
```
2222

@@ -29,7 +29,7 @@ repositories {
2929
mavenCentral()
3030
}
3131
dependencies {
32-
compile 'com.maxmind.db:maxmind-db:3.1.1'
32+
compile 'com.maxmind.db:maxmind-db:3.2.0'
3333
}
3434
```
3535

@@ -220,6 +220,6 @@ The MaxMind DB Reader API uses [Semantic Versioning](https://semver.org/).
220220

221221
## Copyright and License ##
222222

223-
This software is Copyright (c) 2014-2022 by MaxMind, Inc.
223+
This software is Copyright (c) 2014-2025 by MaxMind, Inc.
224224

225225
This is free software, licensed under the Apache License, Version 2.0.

dev-bin/release.sh

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ if [ "$should_continue" != "y" ]; then
6060
exit 1
6161
fi
6262

63+
mvn test
64+
65+
read -r -n 1 -p "Continue given above tests? (y/n) " should_continue
66+
67+
if [ "$should_continue" != "y" ]; then
68+
echo "Aborting"
69+
exit 1
70+
fi
71+
6372
page=.gh-pages/index.md
6473
cat <<EOF > $page
6574
---
@@ -71,37 +80,27 @@ version: $tag
7180
7281
EOF
7382

74-
read -r -n 1 -p "Continue given above dependencies? (y/n) " should_continue
75-
76-
if [ "$should_continue" != "y" ]; then
77-
echo "Aborting"
78-
exit 1
79-
fi
83+
mvn versions:set -DnewVersion="$version"
8084

8185
perl -pi -e "s/(?<=<version>)[^<]*/$version/" README.md
8286
perl -pi -e "s/(?<=com\.maxmind\.db\:maxmind-db\:)\d+\.\d+\.\d+([\w\-]+)?/$version/" README.md
8387

8488
cat README.md >> $page
8589

86-
if [ -n "$(git status --porcelain)" ]; then
87-
git diff
88-
89-
read -r -n 1 -p "Commit README.md changes? " should_commit
90-
if [ "$should_commit" != "y" ]; then
91-
echo "Aborting"
92-
exit 1
93-
fi
94-
git add README.md
95-
git commit -m 'update version number in README.md'
90+
git diff
91+
92+
read -r -n 1 -p "Commit changes? " should_commit
93+
if [ "$should_commit" != "y" ]; then
94+
echo "Aborting"
95+
exit 1
9696
fi
97+
git add README.md pom.xml
98+
git commit -m "Preparing for $version"
9799

100+
mvn clean deploy
98101

99-
# could be combined with the primary build
100-
mvn release:clean
101-
mvn release:prepare -DreleaseVersion="$version" -Dtag="$tag"
102-
mvn release:perform
103102
rm -fr ".gh-pages/doc/$tag"
104-
cp -r target/checkout/target/reports/apidocs ".gh-pages/doc/$tag"
103+
cp -r target/reports/apidocs ".gh-pages/doc/$tag"
105104
rm .gh-pages/doc/latest
106105
ln -fs "$tag" .gh-pages/doc/latest
107106

@@ -127,6 +126,5 @@ git push
127126
popd
128127

129128
git push
130-
git push --tags
131129

132130
gh release create --target "$(git branch --show-current)" -t "$version" -n "$notes" "$tag"

pom.xml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.maxmind.db</groupId>
55
<artifactId>maxmind-db</artifactId>
6-
<version>3.1.2-SNAPSHOT</version>
6+
<version>3.2.0</version>
77
<packaging>jar</packaging>
88
<name>MaxMind DB Reader</name>
99
<description>Reader for MaxMind DB</description>
@@ -163,24 +163,14 @@
163163
<version>2.18.0</version>
164164
</plugin>
165165
<plugin>
166-
<groupId>org.sonatype.plugins</groupId>
167-
<artifactId>nexus-staging-maven-plugin</artifactId>
168-
<version>1.7.0</version>
166+
<groupId>org.sonatype.central</groupId>
167+
<artifactId>central-publishing-maven-plugin</artifactId>
168+
<version>0.7.0</version>
169169
<extensions>true</extensions>
170170
<configuration>
171-
<serverId>sonatype-nexus-staging</serverId>
172-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
173-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
171+
<publishingServerId>central</publishingServerId>
172+
<autoPublish>true</autoPublish>
174173
</configuration>
175-
<executions>
176-
<execution>
177-
<id>default-deploy</id>
178-
<phase>deploy</phase>
179-
<goals>
180-
<goal>deploy</goal>
181-
</goals>
182-
</execution>
183-
</executions>
184174
</plugin>
185175
</plugins>
186176
</build>

0 commit comments

Comments
 (0)