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. 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/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=' 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