Skip to content

Commit

Permalink
feat: update casbin jdbc and jcasbin dependencies (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
liewstar authored Aug 1, 2024
1 parent dbfc31c commit b100f55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ dependencyManagement {
}

dependencies {
api 'org.casbin:jcasbin:1.40.0'
api 'org.casbin:jcasbin:1.55.0'
compileOnly 'org.springframework.boot:spring-boot-starter-data-redis'
compileOnly 'org.casbin:jcasbin-redis-watcher:1.4.1'
runtimeOnly 'com.h2database:h2:2.2.224'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation('org.casbin:jdbc-adapter:2.5.0') {
implementation('org.casbin:jdbc-adapter:2.7.0') {
exclude group: 'org.casbin', module: 'jcasbin'
}
implementation 'org.casbin:jcasbin-lettuce-redis-watcher:1.1.0'
Expand Down
1 change: 1 addition & 0 deletions src/test/java/org/casbin/EnforcerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class EnforcerTest {

@Test
void test1() {
enforcer.clearPolicy();
// user rights
enforcer.addPolicy("alice", "data1", "read");
enforcer.addPolicy("bob", "data2", "write");
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ casbin:
spring:
# Although the data source is configured here, the custom data source is switched to H2 when the unit test is tested.
datasource:
driver-class-name: com.mysql.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/casbin?useSSL=false
username: root
password: casbin_test
Expand Down

0 comments on commit b100f55

Please sign in to comment.