From 229b6eaae159894d27d78afdb7397d34ab7bdcbe Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Thu, 20 Nov 2025 09:23:50 -0800 Subject: [PATCH 1/3] Set release date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4e0efe6..0a55c013 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ CHANGELOG ========= -5.0.0 +5.0.0 (2025-11-20) ------------------ * **BREAKING:** All model and record classes have been converted to Java records. From de164599acf4f95d832f4fc031d0cd5017dc6d3f Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Thu, 20 Nov 2025 09:25:12 -0800 Subject: [PATCH 2/3] Preparing for 5.0.0 --- README.md | 4 ++-- pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 44ac35da..3aba8a69 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To do this, add the dependency to your pom.xml: com.maxmind.geoip2 geoip2 - 4.4.0 + 5.0.0 ``` @@ -30,7 +30,7 @@ repositories { mavenCentral() } dependencies { - compile 'com.maxmind.geoip2:geoip2:4.4.0' + compile 'com.maxmind.geoip2:geoip2:5.0.0' } ``` diff --git a/pom.xml b/pom.xml index f6a1cf1a..7d19753a 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.maxmind.geoip2 geoip2 - 5.0.0-SNAPSHOT + 5.0.0 jar MaxMind GeoIP2 API GeoIP2 webservice client and database reader From 0f497b3a7709fca1e6ab602fa2196326852d1450 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Thu, 20 Nov 2025 09:29:28 -0800 Subject: [PATCH 3/3] Add check to prevent releases from main branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The release script now checks if it's being run from the main branch and exits with an error message if so. This ensures releases are always done from a dedicated release branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- dev-bin/release.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dev-bin/release.sh b/dev-bin/release.sh index 45668bd9..525435e2 100755 --- a/dev-bin/release.sh +++ b/dev-bin/release.sh @@ -2,6 +2,14 @@ set -eu -o pipefail +# Check that we're not on the main branch +current_branch=$(git branch --show-current) +if [ "$current_branch" = "main" ]; then + echo "Error: Releases should not be done directly on the main branch." + echo "Please create a release branch and run this script from there." + exit 1 +fi + changelog=$(cat CHANGELOG.md) regex='