Skip to content

Commit 8dd4940

Browse files
authored
feat: upgrade all jCasbin dependencies to latest (#441)
* fix: fix potential null pointer issue * feat: upgrade all jCasbin dependencies to latest
1 parent 7e28e62 commit 8dd4940

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

pom.xml

+11-11
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
<properties>
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46-
<slf4j.version>1.7.36</slf4j.version>
46+
<slf4j.version>2.0.16</slf4j.version>
4747
</properties>
4848

4949
<distributionManagement>
@@ -58,7 +58,7 @@
5858
<plugin>
5959
<groupId>org.apache.maven.plugins</groupId>
6060
<artifactId>maven-gpg-plugin</artifactId>
61-
<version>1.5</version>
61+
<version>3.2.7</version>
6262
<executions>
6363
<execution>
6464
<id>sign-artifacts</id>
@@ -80,7 +80,7 @@
8080
<!-- Allow attaching Javadoc during releases -->
8181
<groupId>org.apache.maven.plugins</groupId>
8282
<artifactId>maven-javadoc-plugin</artifactId>
83-
<version>2.10.4</version>
83+
<version>3.11.1</version>
8484
<configuration>
8585
<source>11</source>
8686
<detectJavaApiLink>false</detectJavaApiLink>
@@ -130,7 +130,7 @@
130130
<!-- Automatically close and deploy from OSSRH -->
131131
<groupId>org.sonatype.central</groupId>
132132
<artifactId>central-publishing-maven-plugin</artifactId>
133-
<version>0.5.0</version>
133+
<version>0.6.0</version>
134134
<extensions>true</extensions>
135135
<configuration>
136136
<publishingServerId>ossrh</publishingServerId>
@@ -200,39 +200,39 @@
200200
<dependency>
201201
<groupId>com.github.seancfoley</groupId>
202202
<artifactId>ipaddress</artifactId>
203-
<version>5.4.2</version>
203+
<version>5.5.1</version>
204204
</dependency>
205205
<dependency>
206206
<groupId>commons-io</groupId>
207207
<artifactId>commons-io</artifactId>
208-
<version>2.11.0</version>
208+
<version>2.17.0</version>
209209
</dependency>
210210
<dependency>
211211
<groupId>org.openjdk.jmh</groupId>
212212
<artifactId>jmh-core</artifactId>
213-
<version>1.34</version>
213+
<version>1.37</version>
214214
<scope>test</scope>
215215
</dependency>
216216
<dependency>
217217
<groupId>org.openjdk.jmh</groupId>
218218
<artifactId>jmh-generator-annprocess</artifactId>
219-
<version>1.34</version>
219+
<version>1.37</version>
220220
<scope>test</scope>
221221
</dependency>
222222
<dependency>
223223
<groupId>org.apache.commons</groupId>
224224
<artifactId>commons-csv</artifactId>
225-
<version>1.9.0</version>
225+
<version>1.12.0</version>
226226
</dependency>
227227
<dependency>
228228
<groupId>com.google.code.gson</groupId>
229229
<artifactId>gson</artifactId>
230-
<version>2.9.0</version>
230+
<version>2.11.0</version>
231231
</dependency>
232232
<dependency>
233233
<groupId>com.fasterxml.jackson.core</groupId>
234234
<artifactId>jackson-databind</artifactId>
235-
<version>2.16.1</version>
235+
<version>2.18.1</version>
236236
</dependency>
237237
</dependencies>
238238
</project>

src/main/java/org/casbin/jcasbin/persist/file_adapter/FileAdapter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private void loadPolicyData(Model model, Helper.loadPolicyLineHandler<String, Mo
111111
try {
112112
List<String> lines = IOUtils.readLines(inputStream, Charset.forName("UTF-8"));
113113
lines.forEach(x -> handler.accept(x, model));
114-
} catch (IOException e) {
114+
} catch (UncheckedIOException e) {
115115
e.printStackTrace();
116116
throw new CasbinAdapterException("Policy load error");
117117
}

0 commit comments

Comments
 (0)