1
1
import sbtcrossproject .CrossPlugin .autoImport .crossProject
2
- import _root_ .org .typelevel .sbt .tpolecat .TpolecatPlugin .autoImport ._
3
2
import _root_ .org .typelevel .scalacoptions .ScalacOptions
4
3
5
- lazy val scalaVersion212 = " 2.12.19"
6
- lazy val scalaVersion213 = " 2.13.13"
7
- lazy val scalaVersion3 = " 3.3.3"
8
- lazy val scalaVersions = List (scalaVersion212, scalaVersion213, scalaVersion3)
4
+ lazy val scalaVersion3 = " 3.3.4"
5
+ lazy val scalaVersions = List (scalaVersion3)
9
6
10
7
inThisBuild(
11
8
Seq (
12
- scalaVersion := scalaVersion213 ,
9
+ scalaVersion := scalaVersion3 ,
13
10
organization := " com.github.cb372" ,
14
11
licenses := Seq (
15
12
" Apache License, Version 2.0" -> url(
@@ -29,75 +26,53 @@ inThisBuild(
29
26
name = " Luka Jacobowitz" ,
30
27
31
28
url = url(" https://github.com/LukaJCB" )
29
+ ),
30
+ Developer (
31
+ id = " AlejandroBudy" ,
32
+ name = " Alejandro Torres" ,
33
+
34
+ url = url(" https://github.com/AlejandroBudy" )
35
+ ),
36
+ Developer (
37
+ id = " ccantarero91" ,
38
+ name = " Cristian Cantarero Dávila" ,
39
+
40
+ url = url(" https://github.com/ccantarero91" )
32
41
)
33
42
),
34
43
mimaPreviousArtifacts := Set .empty,
35
- scalafmtOnCompile := true
44
+ scalafmtOnCompile := false
36
45
)
37
46
)
38
47
39
- val catsVersion = " 2.10 .0"
40
- val catsEffectVersion = " 3.5.4 "
41
- val catsMtlVersion = " 1.4 .0"
42
- val scalatestVersion = " 3.2.18 "
43
- val scalaTestPlusVersion = " 3.2.18 .0"
44
- val scalacheckVersion = " 1.17 .0"
45
- val disciplineVersion = " 2.2.0 "
48
+ val catsVersion = " 2.12 .0"
49
+ val catsEffectVersion = " 3.5.7 "
50
+ val catsMtlVersion = " 1.5 .0"
51
+ val munitVersion = " 1.0.0 "
52
+ val munitCatsEffectVersion = " 2.0 .0"
53
+ val disciplineVersion = " 2.0 .0"
54
+ val scalacheckEffectVersion = " 1.0.4 "
46
55
47
56
val core = crossProject(JVMPlatform , JSPlatform )
48
57
.in(file(" modules/core" ))
49
58
.settings(
50
59
name := " cats-retry" ,
51
60
crossScalaVersions := scalaVersions,
52
61
libraryDependencies ++= Seq (
53
- " org.typelevel" %%% " cats-core" % catsVersion,
54
- " org.typelevel" %%% " cats-effect" % catsEffectVersion,
55
- " org.scalatest" %%% " scalatest" % scalatestVersion % Test ,
56
- " org.scalacheck" %%% " scalacheck" % scalacheckVersion % Test ,
57
- " org.typelevel" %%% " cats-laws" % catsVersion % Test ,
58
- " org.scalatestplus" %%% " scalacheck-1-17" % scalaTestPlusVersion % Test ,
59
- " org.typelevel" %%% " discipline-scalatest" % disciplineVersion % Test
60
- ),
61
- mimaPreviousArtifacts := Set (
62
- " com.github.cb372" %%% " cats-retry" % " 3.1.0"
62
+ " org.typelevel" %%% " cats-core" % catsVersion,
63
+ " org.typelevel" %%% " cats-effect" % catsEffectVersion,
64
+ " org.scalameta" %%% " munit-scalacheck" % munitVersion % Test ,
65
+ " org.typelevel" %%% " munit-cats-effect" % munitCatsEffectVersion % Test ,
66
+ " org.typelevel" %%% " scalacheck-effect" % scalacheckEffectVersion % Test ,
67
+ " org.typelevel" %%% " cats-laws" % catsVersion % Test ,
68
+ " org.typelevel" %%% " discipline-munit" % disciplineVersion % Test
63
69
),
64
- tpolecatExcludeOptions += ScalacOptions .lintPackageObjectClasses ,
70
+ mimaPreviousArtifacts := Set .empty ,
65
71
Test / tpolecatExcludeOptions += ScalacOptions .warnNonUnitStatement
66
72
)
67
- .jsSettings(
68
- // work around https://github.com/typelevel/sbt-tpolecat/issues/102
69
- tpolecatScalacOptions +=
70
- ScalacOptions .other(" -scalajs" , sv => sv.major == 3L )
71
- )
72
73
val coreJVM = core.jvm
73
74
val coreJS = core.js
74
75
75
- val alleycatsRetry = crossProject(JVMPlatform , JSPlatform )
76
- .in(file(" modules/alleycats" ))
77
- .jvmConfigure(_.dependsOn(coreJVM))
78
- .jsConfigure(_.dependsOn(coreJS))
79
- .settings(
80
- name := " alleycats-retry" ,
81
- crossScalaVersions := scalaVersions,
82
- libraryDependencies ++= Seq (
83
- " org.scalatest" %%% " scalatest" % scalatestVersion % Test ,
84
- " org.scalacheck" %%% " scalacheck" % scalacheckVersion % Test ,
85
- " org.typelevel" %%% " cats-laws" % catsVersion % Test ,
86
- " org.scalatestplus" %%% " scalacheck-1-17" % scalaTestPlusVersion % Test ,
87
- " org.typelevel" %%% " discipline-scalatest" % disciplineVersion % Test
88
- ),
89
- mimaPreviousArtifacts := Set (
90
- " com.github.cb372" %%% " alleycats-retry" % " 3.1.0"
91
- ),
92
- Test / tpolecatExcludeOptions += ScalacOptions .warnNonUnitStatement
93
- )
94
- .jsSettings(
95
- tpolecatScalacOptions += ScalacOptions
96
- .other(" -scalajs" , sv => sv.major == 3L )
97
- )
98
- val alleycatsJVM = alleycatsRetry.jvm
99
- val alleycatsJS = alleycatsRetry.js
100
-
101
76
val mtlRetry = crossProject(JVMPlatform , JSPlatform )
102
77
.in(file(" modules/mtl" ))
103
78
.jvmConfigure(_.dependsOn(coreJVM))
@@ -106,30 +81,23 @@ val mtlRetry = crossProject(JVMPlatform, JSPlatform)
106
81
name := " cats-retry-mtl" ,
107
82
crossScalaVersions := scalaVersions,
108
83
libraryDependencies ++= Seq (
109
- " org.typelevel" %%% " cats-mtl" % catsMtlVersion,
110
- " org.scalatest" %%% " scalatest" % scalatestVersion % Test
111
- ),
112
- mimaPreviousArtifacts := Set (
113
- " com.github.cb372" %%% " cats-retry-mtl" % " 3.1.0"
84
+ " org.typelevel" %%% " cats-mtl" % catsMtlVersion,
85
+ " org.typelevel" %%% " munit-cats-effect" % munitCatsEffectVersion % Test ,
86
+ " org.scalameta" %%% " munit-scalacheck" % munitVersion % Test
114
87
),
115
- tpolecatExcludeOptions += ScalacOptions .lintPackageObjectClasses ,
88
+ mimaPreviousArtifacts := Set .empty ,
116
89
Test / tpolecatExcludeOptions += ScalacOptions .warnNonUnitStatement
117
90
)
118
- .jsSettings(
119
- // work around https://github.com/typelevel/sbt-tpolecat/issues/102
120
- tpolecatScalacOptions +=
121
- ScalacOptions .other(" -scalajs" , sv => sv.major == 3L )
122
- )
123
91
val mtlJVM = mtlRetry.jvm
124
92
val mtlJS = mtlRetry.js
125
93
126
94
val docs = project
127
95
.in(file(" modules/docs" ))
128
- .dependsOn(coreJVM, alleycatsJVM, mtlJVM)
96
+ .dependsOn(coreJVM, mtlJVM)
129
97
.enablePlugins(MicrositesPlugin , BuildInfoPlugin )
130
98
.settings(
131
- addCompilerPlugin (
132
- " org.typelevel " %% " kind-projector " % " 0.13.3 " cross CrossVersion .full
99
+ libraryDependencies ++= Seq (
100
+ " software.amazon.awssdk " % " dynamodb " % " 2.29.43 "
133
101
),
134
102
tpolecatExcludeOptions ++= ScalacOptions .warnUnusedOptions,
135
103
tpolecatExcludeOptions += ScalacOptions .warnNonUnitStatement,
@@ -158,8 +126,6 @@ val root = project
158
126
.aggregate(
159
127
coreJVM,
160
128
coreJS,
161
- alleycatsJVM,
162
- alleycatsJS,
163
129
mtlJVM,
164
130
mtlJS,
165
131
docs
0 commit comments