Skip to content

Commit e53846a

Browse files
oschwaldclaude
andcommitted
Update Java examples to version 4.0.0
Update the minFraud Java dependency version from 1.15.0 to 4.0.0 and change Gradle from `compile` to `implementation` (the modern Gradle syntax). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent f9ef897 commit e53846a

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

content/geoip/geolocate-an-ip/databases.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ Install-Package MaxMind.GeoIP2
2929
<dependency>
3030
<groupId>com.maxmind.geoip2</groupId>
3131
<artifactId>geoip2</artifactId>
32-
<version>2.15.0</version>
32+
<version>5.0.2</version>
3333
</dependency>
3434

3535
// Or install via Gradle
3636
repositories {
3737
mavenCentral()
3838
}
3939
dependencies {
40-
compile 'com.maxmind.geoip2:geoip2:2.15.0'
40+
implementation 'com.maxmind.geoip2:geoip2:5.0.2'
4141
}
4242
```
4343

content/geoip/geolocate-an-ip/web-services.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ Install-Package MaxMind.GeoIP2
3232
<dependency>
3333
<groupId>com.maxmind.geoip2</groupId>
3434
<artifactId>geoip2</artifactId>
35-
<version>2.15.0</version>
35+
<version>5.0.2</version>
3636
</dependency>
3737

3838
// Or install via Gradle
3939
repositories {
4040
mavenCentral()
4141
}
4242
dependencies {
43-
compile 'com.maxmind.geoip2:geoip2:2.15.0'
43+
implementation 'com.maxmind.geoip2:geoip2:5.0.2'
4444
}
4545
```
4646

@@ -239,6 +239,11 @@ const WebServiceClient = require('@maxmind/geoip2-node').WebServiceClient;
239239
// Typescript:
240240
// import { WebServiceClient } from '@maxmind/geoip2-node';
241241

242+
const accountId = '10';
243+
const licenseKey = 'LICENSEKEY';
244+
245+
const client = new WebServiceClient(accountId, licenseKey);
246+
242247
// You can also use `client.city` or `client.insights`
243248
// `client.insights` is not available to GeoLite users
244249
client.country('142.1.1.1').then((response) => {

content/minfraud/evaluate-a-transaction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ Install-Package MaxMind.MinFraud
6666
<dependency>
6767
<groupId>com.maxmind.minfraud</groupId>
6868
<artifactId>minfraud</artifactId>
69-
<version>1.15.0</version>
69+
<version>4.0.0</version>
7070
</dependency>
7171

7272
// Or install via Gradle
7373
repositories {
7474
mavenCentral()
7575
}
7676
dependencies {
77-
compile 'com.maxmind.minfraud:minfraud:1.15.0'
77+
implementation 'com.maxmind.minfraud:minfraud:4.0.0'
7878
}
7979
```
8080

content/minfraud/report-a-transaction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ Install-Package MaxMind.MinFraud
4040
<dependency>
4141
<groupId>com.maxmind.minfraud</groupId>
4242
<artifactId>minfraud</artifactId>
43-
<version>1.15.0</version>
43+
<version>4.0.0</version>
4444
</dependency>
4545

4646
// Or install via Gradle
4747
repositories {
4848
mavenCentral()
4949
}
5050
dependencies {
51-
compile 'com.maxmind.minfraud:minfraud:1.15.0'
51+
implementation 'com.maxmind.minfraud:minfraud:4.0.0'
5252
}
5353
```
5454

0 commit comments

Comments
 (0)