File tree Expand file tree Collapse file tree 1 file changed +22
-17
lines changed Expand file tree Collapse file tree 1 file changed +22
-17
lines changed Original file line number Diff line number Diff line change 2424
2525# 如何使用
2626
27- 添加库依赖,下面是如何在 SBT 中使用
28-
29- > 在gradle,maven中,通常` smt-annotations ` 被替换为` smt-annotations_2.12 ` ,其中,` 2.12 ` 表示Scala版本号。
30-
31- ## common
32-
33- - 通用的宏操作API的封装。
34- - 对象转换器(零依赖,类型安全)。
35- - JDBC ` ResultSet ` 转换器。
36-
37- ``` scala
38- " org.bitlap" %% " smt-common" % " <VERSION>"
39- ```
40-
4127## annotations
4228
4329- ` @toString `
5339" org.bitlap" %% " smt-annotations" % " <VERSION>"
5440```
5541
56- 该库已发布到maven中央仓库,请使用最新版本。仅将本库导入构建系统(例如gradle、sbt)是不够的。还需要配置:
42+ > 在gradle,maven中,通常` smt-annotations ` 被替换为` smt-annotations_2.12 ` ,其中,` 2.12 ` 表示Scala版本号。` smt-annotations ` 改名自` smt-tools `
43+
44+ 在` scala 2.13.x ` 版本中,需增加scalac参数` -Ymacro-annotations ` 。
45+
46+ ## common
47+
48+ - 通用的宏操作API的封装。
49+ - 对象转换器(零依赖,类型安全)。
50+ - JDBC ` ResultSet ` 转换器。
51+
52+ ``` scala
53+ " org.bitlap" %% " smt-common" % " <VERSION>"
54+ ```
55+
56+ 该库已发布到[ https://s01.oss.sonatype.org/ ] ( https://s01.oss.sonatype.org/ ) 仓库,请使用最新版本。仅将本库导入构建系统(例如gradle、sbt)是不够的。不同Scala版本还需要相应配置:
5757
5858| Scala 2.11 | Scala 2.12 | Scala 2.13 |
5959| ----------------------| ----------------------| --------------------------------|
6565addCompilerPlugin(" org.scalamacros" % " paradise_<your-scala-version>" % " <plugin-version>" )
6666```
6767
68- 在` scala 2.13.x ` 版本中,需增加scalac参数` -Ymacro annotations ` 。
68+ 如果没有仓库,可以手动添加:
69+ ```
70+ ThisBuild / resolvers ++= Seq(
71+ "Sonatype OSS Snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots",
72+ "Sonatype OSS Releases" at "https://s01.oss.sonatype.org/content/repositories/releases"
73+ )
74+ ```
6975
7076# 特别感谢
7177
@@ -83,4 +89,3 @@ Thanks to JetBrains for providing me with a free license, which is a strong supp
8389[ Link-Codecov ] : https://codecov.io/gh/bitlap/smt
8490[ Link-Scaladex ] : https://index.scala-lang.org/bitlap/smt/smt-annotations
8591
86-
You can’t perform that action at this time.
0 commit comments