Skip to content

Commit

Permalink
Update project dependencies, make play libraries as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sauntor committed Mar 28, 2017
1 parent 4d7bba0 commit 54f9f1a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ play-dbx [:point_right: 中文说明](README_zh.md)
=================================
A transaction management library that makes it simple while using transactional resources, e.g. play-jdbc, anorm, etc, in PlayFramework.
The original source code is migrated from **Spring Framekwork** 's `spring-tx`, `spring-jdbc` and `spring-context` modules, and remove any unnessery classes. It's aim is to provide a clean and no external dependencies transaction management framework for `Play Framework`. It supports `Play DBApi` a.k. `play-jdbc` out of box, you can refer the instructions bellow.
The core component/interface of `play-dbx` is `Transactional`, `TransactionSettings` and `TransactionManagerLookup`, and the default implementation of `Transactional` is `SimpleDBApiTransactional` and `SimpleDBApiTransactionManagerLookup` for `TransactionManagerLookup`, pelease refere the source code for more details. It only supports **Scala 2.11** currently.
The core component/interface of `play-dbx` is `Transactional`, `TransactionSettings` and `TransactionManagerLookup`, and the default implementation of `Transactional` is `SimpleDBApiTransactional` and `SimpleDBApiTransactionManagerLookup` for `TransactionManagerLookup`, pelease refere the source code for more details. It only supports **Scala 2.11+ && Play 2.5+** currently.

## Add dependency to you project(build.sbt)
```sbt
libraryDependencies += "com.lingcreative" %% "play-dbx" % "1.0.2"
libraryDependencies += "com.lingcreative" %% "play-dbx" % "1.0.3"
```
## Steps(take `Anorm` for example)

Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ play-dbx是一个事务管理框架/类库,源代码移植于SpringFramework

## 项目设置(build.sbt)
```sbt
libraryDependencies += "com.lingcreative" %% "play-dbx" % "1.0.2"
libraryDependencies += "com.lingcreative" %% "play-dbx" % "1.0.3"
```
## 使用(以Anorm为例)

Expand Down
4 changes: 3 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name := "play-dbx"
version := "1.0.2"
version := "1.0.3"
scalaVersion := "2.11.8"
organization := "com.lingcreative"
organizationName := "LingCreative Studio"
Expand Down Expand Up @@ -31,3 +31,5 @@ libraryDependencies ++= Seq(
"org.scalatestplus.play" %% "scalatestplus-play" % "1.5.1" % Test,
"com.typesafe.play" %% "anorm" % "2.5.3" % Test
)

filterScalaLibrary := false
5 changes: 1 addition & 4 deletions src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,12 @@ play {
# Sets whether internal queries should be isolated
isolationLevel = null

# Sets whether pool suspension is allowed. There is a performance impact to enabling it.
# Sets whether local transaction is allowed.
allowLocalTransactions = true

# Sets whether mbeans should be registered
registerMbeans = false

# If non null, sets the catalog that should be used on connections
catalog = null

# If non null, sets the transaction isolation level
transactionIsolation = null

Expand Down

0 comments on commit 54f9f1a

Please sign in to comment.