Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
CHANGELOG
=========

3.2.0 (2025-05-28)
------------------

* First release using Central Portal instead of Legacy OSSRH.
* Improve internal uses of types and other code cleanups. Pull requests
by Philippe Marschall. GitHub #246, #247, #248, and #249.

3.1.1 (2024-09-19)
------------------

Expand Down
1 change: 1 addition & 0 deletions README.dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See the [`README.dev.md` in `minfraud-api-java`](https://github.com/maxmind/minfraud-api-java/blob/main/README.dev.md).
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To do this, add the dependency to your pom.xml:
<dependency>
<groupId>com.maxmind.db</groupId>
<artifactId>maxmind-db</artifactId>
<version>3.1.1</version>
<version>3.2.0</version>
</dependency>
```

Expand All @@ -29,7 +29,7 @@ repositories {
mavenCentral()
}
dependencies {
compile 'com.maxmind.db:maxmind-db:3.1.1'
compile 'com.maxmind.db:maxmind-db:3.2.0'
}
```

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

## Copyright and License ##

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

This is free software, licensed under the Apache License, Version 2.0.
42 changes: 20 additions & 22 deletions dev-bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ if [ "$should_continue" != "y" ]; then
exit 1
fi

mvn test

read -r -n 1 -p "Continue given above tests? (y/n) " should_continue

if [ "$should_continue" != "y" ]; then
echo "Aborting"
exit 1
fi

page=.gh-pages/index.md
cat <<EOF > $page
---
Expand All @@ -71,37 +80,27 @@ version: $tag

EOF

read -r -n 1 -p "Continue given above dependencies? (y/n) " should_continue

if [ "$should_continue" != "y" ]; then
echo "Aborting"
exit 1
fi
mvn versions:set -DnewVersion="$version"

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

cat README.md >> $page

if [ -n "$(git status --porcelain)" ]; then
git diff

read -r -n 1 -p "Commit README.md changes? " should_commit
if [ "$should_commit" != "y" ]; then
echo "Aborting"
exit 1
fi
git add README.md
git commit -m 'update version number in README.md'
git diff

read -r -n 1 -p "Commit changes? " should_commit
if [ "$should_commit" != "y" ]; then
echo "Aborting"
exit 1
fi
git add README.md pom.xml
git commit -m "Preparing for $version"

mvn clean deploy

# could be combined with the primary build
mvn release:clean
mvn release:prepare -DreleaseVersion="$version" -Dtag="$tag"
mvn release:perform
rm -fr ".gh-pages/doc/$tag"
cp -r target/checkout/target/reports/apidocs ".gh-pages/doc/$tag"
cp -r target/reports/apidocs ".gh-pages/doc/$tag"
rm .gh-pages/doc/latest
ln -fs "$tag" .gh-pages/doc/latest

Expand All @@ -127,6 +126,5 @@ git push
popd

git push
git push --tags

gh release create --target "$(git branch --show-current)" -t "$version" -n "$notes" "$tag"
22 changes: 6 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.maxmind.db</groupId>
<artifactId>maxmind-db</artifactId>
<version>3.1.2-SNAPSHOT</version>
<version>3.2.0</version>
<packaging>jar</packaging>
<name>MaxMind DB Reader</name>
<description>Reader for MaxMind DB</description>
Expand Down Expand Up @@ -163,24 +163,14 @@
<version>2.18.0</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.7.0</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
</configuration>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down
Loading