Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 123dd6b

Browse files
committed
continue
Signed-off-by: 梦境迷离 <dreamylost@outlook.com>
1 parent 0a832b4 commit 123dd6b

File tree

100 files changed

+49
-4785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+49
-4785
lines changed

.codecov.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,4 @@ comment:
1818
ignore:
1919
- "**/package.scala"
2020
- "**/macros.scala"
21-
- "**/LogUtils.scala"
22-
- "**/ZRedisConfiguration.scala"
23-
- "**/ZRedisLive.scala"
24-
- "**/ZRedisService.scala"
2521
- "examples/**/*"

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,9 @@ examples/scala2-13/target/
2020
examples/scala2-11/project/target
2121
examples/scala2-12/project/target
2222
examples/scala2-13/project/target
23-
smt-cacheable/target
24-
smt-cacheable-caffeine/target
25-
smt-cacheable-redis/target
2623
smt-csv/target
2724
smt-csv-derive/target
2825
smt-annotations/target
29-
smt-cache/target
3026
smt-common/target
3127

3228
.run/

README.md

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
# smt
22

3-
| CI | Codecov |
4-
|-----------------|-------------------------------------------|
5-
| ![CI][Badge-CI] | [![codecov][Badge-Codecov]][Link-Codecov] |
3+
| CI | Codecov | Scaladex | Jetbrains Plugin |
4+
|-----------------|-------------------------------------------|---------------------------------------------------------------|-----------------------------------------------|
5+
| ![CI][Badge-CI] | [![codecov][Badge-Codecov]][Link-Codecov] | [![smt Scala version support][Badge-Scaladex]][Link-Scaladex] | [![Version][Badge-Jetbrains]][Link-Jetbrains] |
66

7-
| Scaladex | Jetbrains Plugin |
8-
|---------------------------------------------------------------|-----------------------------------------------|
9-
| [![smt Scala version support][Badge-Scaladex]][Link-Scaladex] | [![Version][Badge-Jetbrains]][Link-Jetbrains] |
107

118
# 环境
129

13-
- Java 8+
14-
- Scala 2.11.12、2.12.16、2.13.8 => Scala3版本 [bitlap/rolls](https://github.com/bitlap/rolls)
10+
- Scala 2.11.12
11+
- Scala 2.12.16
12+
- Scala 2.13.8
13+
- Scala3版本 [bitlap/rolls](https://github.com/bitlap/rolls)
1514

1615
# 文档
1716

@@ -23,13 +22,6 @@
2322

2423
> 在gradle,maven中,通常`smt-annotations`被替换为`smt-annotations_2.12`,其中,`2.12`表示Scala版本号。
2524
26-
## cache
27-
28-
- 统一缓存API,缓存适配器(零依赖,类型安全)。
29-
```scala
30-
"org.bitlap" %% "smt-cache" % "<VERSION>"
31-
```
32-
3325
## common
3426

3527
- 通用的宏操作API的封装。
@@ -40,31 +32,13 @@
4032
"org.bitlap" %% "smt-common" % "<VERSION>"
4133
```
4234

43-
## csv
44-
45-
- CSV/TSV文件读写工具(零依赖,类型安全)。
46-
47-
```scala
48-
"org.bitlap" %% "smt-csv" % "<VERSION>"
49-
```
50-
51-
## csv-derive
52-
53-
- 自动派生CSV/TSV文件读写工具。
54-
55-
```scala
56-
"org.bitlap" %% "smt-csv-derive" % "<VERSION>"
57-
```
58-
5935
## annotations
6036

6137
- `@toString`
6238
- `@builder`
63-
- `@log`
6439
- `@apply`
6540
- `@constructor`
6641
- `@equalsAndHashCode`
67-
- `@elapsed`
6842
- `@javaCompatible`
6943

7044
> Intellij插件 `Scala-Macro-Tools`
@@ -95,7 +69,7 @@ This project is developed using JetBrains IDEA.
9569
Thanks to JetBrains for providing me with a free license, which is a strong support for me.
9670

9771
[Badge-CI]: https://github.com/bitlap/smt/actions/workflows/ci.yml/badge.svg
98-
[Badge-Scaladex]: https://index.scala-lang.org/bitlap/smt/smt-annotations/latest.svg?platform=jvm
72+
[Badge-Scaladex]: https://index.scala-lang.org/bitlap/smt/smt-annotations/latest-by-scala-version.svg?platform=jvm
9973
[Badge-Jetbrains]: https://img.shields.io/jetbrains/plugin/v/17202-scala-macro-tools
10074
[Badge-Codecov]: https://codecov.io/gh/bitlap/smt/branch/master/graph/badge.svg?token=IA596YRTOT
10175

build.sbt

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ lazy val scala211 = "2.11.12"
3535
lazy val scala213 = "2.13.8"
3636

3737
lazy val scalatestVersion = "3.2.15"
38-
lazy val scalaLoggingVersion = "3.9.5"
39-
lazy val log4jVersion = "2.20.0"
40-
lazy val scalaCollectionCompatVersion = "2.9.0"
4138
lazy val h2 = "2.1.214"
4239

4340
lazy val commonSettings =
@@ -58,23 +55,13 @@ lazy val commonSettings =
5855
} ++ Seq("-language:experimental.macros"),
5956
Compile / compile := (Compile / compile).dependsOn(Compile / headerCreateAll).value,
6057
Global / onChangedBuildSource := ReloadOnSourceChanges,
61-
headerLicense := Some(HeaderLicense.MIT("2022", "bitlap")),
58+
headerLicense := Some(HeaderLicense.MIT("2023", "bitlap")),
6259
Test / testOptions += Tests.Argument("-oDF"),
6360
Test / fork := true,
6461
publishConfiguration := publishConfiguration.value.withOverwrite(true),
6562
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true)
6663
)
6764

68-
lazy val `smt-csv` = (project in file("smt-csv"))
69-
.settings(commonSettings)
70-
.settings(
71-
name := "smt-csv",
72-
crossScalaVersions := List(scala213, scala212, scala211)
73-
)
74-
.dependsOn(`smt-common` % "compile->compile;test->test")
75-
.settings(paradise())
76-
.enablePlugins(HeaderPlugin)
77-
7865
lazy val `smt-common` = (project in file("smt-common"))
7966
.settings(commonSettings)
8067
.settings(
@@ -87,55 +74,25 @@ lazy val `smt-common` = (project in file("smt-common"))
8774
.settings(paradise())
8875
.enablePlugins(HeaderPlugin)
8976

90-
lazy val `smt-cache` = (project in file("smt-cache"))
91-
.settings(commonSettings)
92-
.settings(
93-
name := "smt-cache",
94-
crossScalaVersions := List(scala213, scala212, scala211),
95-
libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % scalaCollectionCompatVersion
96-
)
97-
.settings(paradise())
98-
.dependsOn(`smt-common` % "compile->compile;test->test")
99-
.enablePlugins(HeaderPlugin)
100-
101-
lazy val `smt-csv-derive` = (project in file("smt-csv-derive"))
102-
.settings(commonSettings)
103-
.settings(
104-
name := "smt-csv-derive",
105-
crossScalaVersions := List(scala213, scala212, scala211)
106-
)
107-
.settings(paradise())
108-
.enablePlugins(HeaderPlugin)
109-
.dependsOn(`smt-csv` % "compile->compile;test->test")
110-
11177
lazy val `smt-annotations` = (project in file("smt-annotations"))
11278
.settings(commonSettings)
11379
.settings(
11480
name := "smt-annotations",
11581
crossScalaVersions := List(scala213, scala212, scala211),
116-
libraryDependencies ++= Seq(
117-
"com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingVersion,
118-
"org.apache.logging.log4j" % "log4j-api" % log4jVersion % Test,
119-
"org.apache.logging.log4j" % "log4j-core" % log4jVersion % Test,
120-
"org.apache.logging.log4j" % "log4j-slf4j-impl" % log4jVersion % Test
121-
)
12282
)
12383
.settings(paradise())
12484
.enablePlugins(HeaderPlugin)
12585

12686
lazy val `smt` = (project in file("."))
12787
.aggregate(
12888
`smt-annotations`,
129-
`smt-csv`,
130-
`smt-csv-derive`,
131-
`smt-cache`,
13289
`smt-common`
13390
)
13491
.settings(
13592
commands ++= Commands.value,
13693
crossScalaVersions := Nil,
13794
publish / skip := true,
138-
headerLicense := Some(HeaderLicense.MIT("2022", "bitlap"))
95+
headerLicense := Some(HeaderLicense.MIT("2023", "bitlap"))
13996
)
14097

14198
def paradise(): Def.Setting[Seq[ModuleID]] =

smt-annotations/src/main/scala/org/bitlap/tools/apply.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 bitlap
2+
* Copyright (c) 2023 bitlap
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of
55
* this software and associated documentation files (the "Software"), to deal in

smt-annotations/src/main/scala/org/bitlap/tools/builder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 bitlap
2+
* Copyright (c) 2023 bitlap
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of
55
* this software and associated documentation files (the "Software"), to deal in

smt-annotations/src/main/scala/org/bitlap/tools/constructor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 bitlap
2+
* Copyright (c) 2023 bitlap
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of
55
* this software and associated documentation files (the "Software"), to deal in

smt-annotations/src/main/scala/org/bitlap/tools/elapsed.scala

Lines changed: 0 additions & 42 deletions
This file was deleted.

smt-annotations/src/main/scala/org/bitlap/tools/equalsAndHashCode.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 bitlap
2+
* Copyright (c) 2023 bitlap
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of
55
* this software and associated documentation files (the "Software"), to deal in

smt-annotations/src/main/scala/org/bitlap/tools/internal/AbstractMacroProcessor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 bitlap
2+
* Copyright (c) 2023 bitlap
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of
55
* this software and associated documentation files (the "Software"), to deal in

0 commit comments

Comments
 (0)