Skip to content

Commit

Permalink
Update modernizer-maven-plugin.version to v3 (major) (#167)
Browse files Browse the repository at this point in the history
* Update modernizer-maven-plugin.version to v3

* fix modernizer warning

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mark Prins <[email protected]>
  • Loading branch information
renovate[bot] and mprins authored Dec 30, 2024
1 parent 3c1ed4b commit 8ca9ed0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ SPDX-License-Identifier: MIT
<versions-maven-plugin.version>2.18.0</versions-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
<dependency-check-maven.version>11.1.1</dependency-check-maven.version>
<modernizer-maven-plugin.version>2.9.0</modernizer-maven-plugin.version>
<modernizer-maven-plugin.version>3.0.0</modernizer-maven-plugin.version>
<pmd.version>7.0.0</pmd.version>
<maven-fluido-skin.version>2.0.1</maven-fluido-skin.version>
<errorProne.version>2.36.0</errorProne.version>
Expand Down Expand Up @@ -194,6 +194,11 @@ SPDX-License-Identifier: MIT
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<!-- provides @SuppressModernizer that can be used on method to suppress the Modernizer plugin -->
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-annotations</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@

import static java.nio.charset.StandardCharsets.UTF_8;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Map;
import org.geotools.api.data.DataStore;
Expand All @@ -34,7 +35,9 @@ public static void main(String[] args) throws IOException {
String wfs = "https://service.pdok.nl/kadaster/bestuurlijkegebieden/wfs/v1_0";
String typename = "bestuurlijkegebieden:Gemeentegebied";
String sql = getGemeentesSql(wfs, typename);
new OutputStreamWriter(new FileOutputStream("gemeentes.sql"), UTF_8).append(sql).close();
new OutputStreamWriter(Files.newOutputStream(Path.of("gemeentes.sql")), UTF_8)
.append(sql)
.close();
System.out.println("Done");
}

Expand Down

0 comments on commit 8ca9ed0

Please sign in to comment.