@@ -37,7 +37,6 @@ val commonSettings = Seq(
37
37
)
38
38
39
39
val moduleSettings = commonSettings ++ Seq (
40
- moduleName := s " cats-retry- ${name.value}" ,
41
40
scalacOptions ++= Seq (
42
41
" -Xfuture" ,
43
42
" -Ywarn-dead-code" ,
@@ -58,6 +57,7 @@ val moduleSettings = commonSettings ++ Seq(
58
57
)
59
58
60
59
val catsVersion = " 2.0.0"
60
+ val catsEffectVersion = " 2.0.0"
61
61
val scalatestVersion = " 3.1.0"
62
62
val scalaTestPlusVersion = " 3.1.0.0-RC2"
63
63
val scalacheckVersion = " 1.14.2"
@@ -67,9 +67,13 @@ val core = crossProject(JVMPlatform, JSPlatform)
67
67
.in(file(" modules/core" ))
68
68
.settings(moduleSettings)
69
69
.settings(
70
+ name := " cats-retry" ,
70
71
crossScalaVersions := scalaVersions,
71
72
libraryDependencies ++= Seq (
72
73
" org.typelevel" %%% " cats-core" % catsVersion,
74
+ " org.typelevel" %%% " cats-effect" % catsEffectVersion,
75
+ " org.scalatest" %%% " scalatest" % scalatestVersion % Test ,
76
+ " org.scalacheck" %%% " scalacheck" % scalacheckVersion % Test ,
73
77
" org.typelevel" %%% " cats-laws" % catsVersion % Test ,
74
78
" org.scalatest" %%% " scalatest" % scalatestVersion % Test ,
75
79
" org.scalatestplus" %%% " scalatestplus-scalacheck" % scalaTestPlusVersion % Test ,
@@ -80,42 +84,30 @@ val core = crossProject(JVMPlatform, JSPlatform)
80
84
val coreJVM = core.jvm
81
85
val coreJS = core.js
82
86
83
- val catsEffect = crossProject(JVMPlatform , JSPlatform )
84
- .in(file(" modules/cats-effect " ))
87
+ val alleycatsRetry = crossProject(JVMPlatform , JSPlatform )
88
+ .in(file(" modules/alleycats " ))
85
89
.jvmConfigure(_.dependsOn(coreJVM))
86
90
.jsConfigure(_.dependsOn(coreJS))
87
91
.settings(moduleSettings)
88
92
.settings(
93
+ name := " alleycats-retry" ,
89
94
crossScalaVersions := scalaVersions,
90
- name := " cats-effect" ,
91
- libraryDependencies ++= Seq (
92
- " org.typelevel" %%% " cats-effect" % " 2.0.0" ,
93
- " org.scalatest" %%% " scalatest" % scalatestVersion % Test ,
94
- " org.scalacheck" %%% " scalacheck" % scalacheckVersion % Test
95
- )
96
- )
97
- val catsEffectJVM = catsEffect.jvm
98
- val catsEffectJS = catsEffect.js
99
-
100
- val monix = crossProject(JVMPlatform , JSPlatform )
101
- .in(file(" modules/monix" ))
102
- .jvmConfigure(_.dependsOn(coreJVM))
103
- .jsConfigure(_.dependsOn(coreJS))
104
- .settings(moduleSettings)
105
- .settings(
106
- crossScalaVersions := List (scalaVersion212, scalaVersion211),
107
95
libraryDependencies ++= Seq (
108
- " io.monix" %%% " monix" % " 3.1.0" ,
109
- " org.scalatest" %%% " scalatest" % scalatestVersion % Test ,
110
- " org.scalacheck" %%% " scalacheck" % scalacheckVersion % Test
96
+ " org.scalatest" %%% " scalatest" % scalatestVersion % Test ,
97
+ " org.scalacheck" %%% " scalacheck" % scalacheckVersion % Test ,
98
+ " org.typelevel" %%% " cats-laws" % catsVersion % Test ,
99
+ " org.scalatest" %%% " scalatest" % scalatestVersion % Test ,
100
+ " org.scalatestplus" %%% " scalatestplus-scalacheck" % scalaTestPlusVersion % Test ,
101
+ " org.typelevel" %%% " discipline-scalatest" % disciplineVersion % Test ,
102
+ " org.scalacheck" %%% " scalacheck" % scalacheckVersion % Test
111
103
)
112
104
)
113
- val monixJVM = monix .jvm
114
- val monixJS = monix .js
105
+ val alleycatsJVM = alleycatsRetry .jvm
106
+ val alleycatsJS = alleycatsRetry .js
115
107
116
108
val docs = project
117
109
.in(file(" modules/docs" ))
118
- .dependsOn(coreJVM, catsEffectJVM, monixJVM )
110
+ .dependsOn(coreJVM, alleycatsJVM )
119
111
.enablePlugins(MicrositesPlugin , BuildInfoPlugin )
120
112
.settings(moduleSettings)
121
113
.settings(
@@ -125,6 +117,9 @@ val docs = project
125
117
addCompilerPlugin(
126
118
" org.typelevel" %% " kind-projector" % " 0.11.0" cross CrossVersion .full
127
119
),
120
+ libraryDependencies ++= Seq (
121
+ " io.monix" %%% " monix" % " 3.1.0"
122
+ ),
128
123
crossScalaVersions := Nil ,
129
124
buildInfoPackage := " retry" ,
130
125
publishArtifact := false ,
@@ -148,10 +143,8 @@ val root = project
148
143
.aggregate(
149
144
coreJVM,
150
145
coreJS,
151
- catsEffectJVM,
152
- catsEffectJS,
153
- monixJVM,
154
- monixJS,
146
+ alleycatsJVM,
147
+ alleycatsJS,
155
148
docs
156
149
)
157
150
.settings(commonSettings)
0 commit comments