Skip to content

Commit

Permalink
fix: replace built-in adapter and watcher with official jdbc-adapter …
Browse files Browse the repository at this point in the history
…and redis-watcher (jcasbin#68)

* fix: remove built-in adapter and watcher

* fix: add official jdbc-adapter and redis-watcher
  • Loading branch information
imp2002 authored Jul 6, 2022
1 parent 1aadca5 commit b90f961
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 831 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/gradle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
build:
runs-on: ubuntu-latest
services:
# mysql:
# image: mysql:5.7
# ports:
# - 3306:3306
# env:
# MYSQL_ROOT_PASSWORD: casbin_test
# MYSQL_DATABASE: casbin
# options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
mysql:
image: mysql:5.7
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: casbin_test
MYSQL_DATABASE: casbin
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis
ports:
Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-data-redis'
testRuntimeOnly 'mysql:mysql-connector-java:5.1.47'
testImplementation 'org.springframework.boot:spring-boot-starter-test'

implementation 'org.casbin:jcasbin-redis-watcher:1.4.0'
implementation 'org.casbin:jdbc-adapter:2.3.0'
}
153 changes: 0 additions & 153 deletions src/main/java/org/casbin/adapter/CasbinRule.java

This file was deleted.

65 changes: 0 additions & 65 deletions src/main/java/org/casbin/adapter/DB2Adapter.java

This file was deleted.

Loading

0 comments on commit b90f961

Please sign in to comment.