Skip to content

Commit b100f55

Browse files
authored
feat: update casbin jdbc and jcasbin dependencies (#104)
1 parent dbfc31c commit b100f55

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ dependencyManagement {
3939
}
4040

4141
dependencies {
42-
api 'org.casbin:jcasbin:1.40.0'
42+
api 'org.casbin:jcasbin:1.55.0'
4343
compileOnly 'org.springframework.boot:spring-boot-starter-data-redis'
4444
compileOnly 'org.casbin:jcasbin-redis-watcher:1.4.1'
4545
runtimeOnly 'com.h2database:h2:2.2.224'
4646
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
47-
implementation('org.casbin:jdbc-adapter:2.5.0') {
47+
implementation('org.casbin:jdbc-adapter:2.7.0') {
4848
exclude group: 'org.casbin', module: 'jcasbin'
4949
}
5050
implementation 'org.casbin:jcasbin-lettuce-redis-watcher:1.1.0'

src/test/java/org/casbin/EnforcerTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class EnforcerTest {
2929

3030
@Test
3131
void test1() {
32+
enforcer.clearPolicy();
3233
// user rights
3334
enforcer.addPolicy("alice", "data1", "read");
3435
enforcer.addPolicy("bob", "data2", "write");

src/test/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ casbin:
3333
spring:
3434
# Although the data source is configured here, the custom data source is switched to H2 when the unit test is tested.
3535
datasource:
36-
driver-class-name: com.mysql.jdbc.Driver
36+
driver-class-name: com.mysql.cj.jdbc.Driver
3737
url: jdbc:mysql://localhost:3306/casbin?useSSL=false
3838
username: root
3939
password: casbin_test

0 commit comments

Comments
 (0)