- java 1.8
- scala 2.12.12
- gradle 6.5
- scalikejdbc 3.5.0
1. git clone [email protected]:zJiaJun/scala-core.git
2. cd scala-core
3. ./gradlew build
-
setup with gradle plugin
buildscript { dependencies { classpath "com.diffplug.spotless:spotless-plugin-gradle:$versions.spotlessPlugin" } } apply plugin: "com.diffplug.gradle.spotless" spotless { scala { target '**/*.scala' scalafmt("$versions.scalafmt").configFile('checkstyle/.scalafmt.conf') } }
spotlessPlugin.version = 3.28.1 scalafmt.version = 1.5.1 具体请看build.gradle和dependencies.gradle
- 一些学习和研究scala过程中的例子
- A tidy SQL-based DB access library for Scala developers
-
官方文档例子学习
1. IndexExample
2. ConfigExample
3. ConnectionPoolExample
4. OperationExample
5. TransactionExample
6. AutoSessionExample
7. SQLInterpolationExample
8. QueryDSLExample