@@ -48,11 +48,8 @@ lazy val versions = new {
48
48
val tofuDerevo = " 0.13.0"
49
49
val twirl = " 1.5.1"
50
50
val typesafeConfig = " 1.4.2"
51
- val fs2 = " 3.2.5 "
51
+ val fs2 = " 3.8.0 "
52
52
val scalaUri = " 4.0.0"
53
- val prismSdk =
54
- " v1.4.1-snapshot-1688975371-7541fd2" // deployed to github packages from sdk branch "node-1.4-extension-sdk"
55
- val vaultSdk = " 0.1.0-build-2-96cc137d"
56
53
}
57
54
58
55
lazy val Dependencies = new {
@@ -103,9 +100,6 @@ lazy val Dependencies = new {
103
100
val typesafeConfig = " com.typesafe" % " config" % versions.typesafeConfig
104
101
val fs2 = " co.fs2" %% " fs2-io" % versions.fs2
105
102
val scalaUri = " io.lemonlabs" %% " scala-uri" % versions.scalaUri
106
-
107
- // SDK dependencies
108
-
109
103
// Test dependencies
110
104
val catsScalatest =
111
105
" com.ironcorelabs" %% " cats-scalatest" % versions.catsScalatest % Test
@@ -150,89 +144,70 @@ lazy val Dependencies = new {
150
144
" com.thesamet.scalapb" %% " scalapb-runtime" % scalapb.compiler.Version .scalapbVersion % " protobuf" ,
151
145
" com.thesamet.scalapb" %% " scalapb-runtime-grpc" % scalapb.compiler.Version .scalapbVersion
152
146
)
153
-
154
- // cardano-address library binary
155
- val cardanoAddressBinaryUrl =
156
- " https://github.com/input-output-hk/cardano-addresses/releases/download/3.2.0/cardano-addresses-3.2.0-linux64.tar.gz"
157
-
158
- // sha512 checksum of untarred binary file,
159
- val cardanoAddressBinaryChecksum =
160
- " fc45eeb026ef3e6fda8fdb792c83bb5bd25946b011b75e6364931206b4b6037e5d8e6f1a78b92b17062b28ae2b6bbd617a8fe50831a00f6fc8758234d36e2db9"
161
147
}
162
148
163
149
publish / skip := true
164
150
165
- lazy val commonSettings = Seq (
166
- publish / skip := true ,
167
- buildInfoPackage := " io.iohk.atala.prism" ,
168
- scalacOptions ~= (options =>
169
- options.filterNot(
170
- Set (
171
- " -Xlint:package-object-classes" ,
172
- " -Wdead-code" ,
173
- " -Ywarn-dead-code"
174
- )
175
- )
176
- ),
177
- scalacOptions += " -Ymacro-annotations" ,
178
- javacOptions ++= Seq (" -source" , " 1.11" , " -target" , " 1.11" ),
179
- githubTokenSource := TokenSource .Environment (" GITHUB_TOKEN" ),
180
- resolvers += Resolver
181
- .githubPackages(" input-output-hk" , " atala-prism-sdk" ),
182
- // Needed for Kotlin coroutines that support new memory management mode
183
- resolvers +=
184
- " JetBrains Space Maven Repository" at " https://maven.pkg.jetbrains.space/public/p/kotlinx-coroutines/maven" ,
185
- libraryDependencies ++= Dependencies .scalatestDependencies,
186
- addCompilerPlugin(
187
- " org.typelevel" % " kind-projector" % " 0.13.2" cross CrossVersion .full
188
- ),
189
- Test / fork := true ,
190
- Test / parallelExecution := false ,
191
- Test / testForkedParallel := false ,
192
- assembly / test := {},
193
- commands += Command .args(" testOnlyUntilFailed" , " <testOnly params>" ) { (state, args) =>
194
- val argsString = args.mkString(" " )
195
- (" testOnly " + argsString) :: (" testOnlyUntilFailed " + argsString) :: state
196
- },
197
- assembly / assemblyExcludedJars := {
198
- val cp = (assembly / fullClasspath).value
199
-
200
- val excludeLibs =
201
- Set (
202
- " protobuf-javalite" ,
203
- " kotlinx-coroutines-core" ,
204
- " pbandk-protos" ,
205
- " jakarta"
206
- )
207
-
208
- cp.filter { path =>
209
- excludeLibs.exists(lib => path.data.getName.startsWith(lib))
210
- }
211
- },
212
- assembly / assemblyMergeStrategy := {
213
- // Merge service files, otherwise GRPC client doesn't work: https://github.com/grpc/grpc-java/issues/5493
214
- case PathList (" META-INF" , " services" , _* ) => MergeStrategy .concat
215
- case PathList (" META-INF" , " io.netty.versions.properties" ) =>
216
- MergeStrategy .concat
217
- // It is safe to discard when building an uber-jar according to https://stackoverflow.com/a/55557287
218
- case x if x.endsWith(" module-info.class" ) => MergeStrategy .discard
219
- case " logback.xml" => MergeStrategy .first
220
- case " scala-collection-compat.properties" => MergeStrategy .last
221
- // org.bitcoin classes are coming from both bitcoinj and fr.acinq.secp256k1-jni
222
- case PathList (" org" , " bitcoin" , _* ) => MergeStrategy .last
223
- case x =>
224
- val oldStrategy = (assembly / assemblyMergeStrategy).value
225
- oldStrategy(x)
226
- }
227
- )
228
-
229
- lazy val node =
151
+ lazy val root =
230
152
project
231
- .in(file(" node " ))
153
+ .in(file(" . " ))
232
154
.settings(
233
- commonSettings,
234
155
name := " node" ,
235
156
Compile / mainClass := Some (" io.iohk.atala.prism.node.NodeApp" ),
157
+ buildInfoPackage := " io.iohk.atala.prism" ,
158
+ scalacOptions ~= (options =>
159
+ options.filterNot(
160
+ Set (
161
+ " -Xlint:package-object-classes" ,
162
+ " -Wdead-code" ,
163
+ " -Ywarn-dead-code"
164
+ )
165
+ )
166
+ ),
167
+ scalacOptions += " -Ymacro-annotations" ,
168
+ javacOptions ++= Seq (" -source" , " 1.11" , " -target" , " 1.11" ),
169
+ githubTokenSource := TokenSource .Environment (" GITHUB_TOKEN" ),
170
+ addCompilerPlugin(
171
+ " org.typelevel" % " kind-projector" % " 0.13.2" cross CrossVersion .full
172
+ ),
173
+ Test / fork := true ,
174
+ Test / parallelExecution := false ,
175
+ Test / testForkedParallel := false ,
176
+ assembly / test := {},
177
+ commands += Command .args(" testOnlyUntilFailed" , " <testOnly params>" ) { (state, args) =>
178
+ val argsString = args.mkString(" " )
179
+ (" testOnly " + argsString) :: (" testOnlyUntilFailed " + argsString) :: state
180
+ },
181
+ assembly / assemblyExcludedJars := {
182
+ val cp = (assembly / fullClasspath).value
183
+
184
+ val excludeLibs =
185
+ Set (
186
+ " protobuf-javalite" ,
187
+ " kotlinx-coroutines-core" ,
188
+ " pbandk-protos" ,
189
+ " jakarta"
190
+ )
191
+
192
+ cp.filter { path =>
193
+ excludeLibs.exists(lib => path.data.getName.startsWith(lib))
194
+ }
195
+ },
196
+ assembly / assemblyMergeStrategy := {
197
+ // Merge service files, otherwise GRPC client doesn't work: https://github.com/grpc/grpc-java/issues/5493
198
+ case PathList (" META-INF" , " services" , _* ) => MergeStrategy .concat
199
+ case PathList (" META-INF" , " io.netty.versions.properties" ) =>
200
+ MergeStrategy .concat
201
+ // It is safe to discard when building an uber-jar according to https://stackoverflow.com/a/55557287
202
+ case x if x.endsWith(" module-info.class" ) => MergeStrategy .discard
203
+ case " logback.xml" => MergeStrategy .first
204
+ case " scala-collection-compat.properties" => MergeStrategy .last
205
+ // org.bitcoin classes are coming from both bitcoinj and fr.acinq.secp256k1-jni
206
+ case PathList (" org" , " bitcoin" , _* ) => MergeStrategy .last
207
+ case x =>
208
+ val oldStrategy = (assembly / assemblyMergeStrategy).value
209
+ oldStrategy(x)
210
+ },
236
211
// Make ScalaPB compile protos relative to `protobuf_external_src/protos` directory.
237
212
// Otherwise, it will assume that `protobuf_external_src` is the root directory for proto files.
238
213
Compile / PB .protoSources := (Compile / PB .protoSources).value.map {
@@ -265,6 +240,7 @@ lazy val node =
265
240
++ Dependencies .sttpDependencies
266
241
++ Dependencies .mockitoDependencies
267
242
++ Dependencies .scalapbDependencies
243
+ ++ Dependencies .scalatestDependencies
268
244
++ Seq (
269
245
Dependencies .chimney,
270
246
Dependencies .diffx,
@@ -280,10 +256,6 @@ lazy val node =
280
256
)
281
257
.enablePlugins(BuildInfoPlugin , JavaAppPackaging , DockerPlugin )
282
258
283
- lazy val root = project
284
- .in(file(" ." ))
285
- .aggregate(node)
286
-
287
259
Global / onChangedBuildSource := ReloadOnSourceChanges
288
260
289
261
// ############################
@@ -296,6 +268,6 @@ releaseProcess := Seq[ReleaseStep](
296
268
runClean,
297
269
runTest,
298
270
setReleaseVersion,
299
- ReleaseStep (releaseStepTask(node / Docker / stage)),
271
+ ReleaseStep (releaseStepTask(root / Docker / stage)),
300
272
setNextVersion
301
273
)
0 commit comments