Skip to content

Commit

Permalink
scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalend committed Oct 11, 2024
1 parent 1afd6df commit 1b61b41
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
5 changes: 3 additions & 2 deletions modules/codegen/src/smithy4s/codegen/SmithyBuildJson.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import scala.collection.immutable.ListSet

private[codegen] object SmithyBuildJson {

val protocolDependency = s"com.disneystreaming.smithy4s:smithy4s-protocol:${BuildInfo.version}"
val protocolDependency =
s"com.disneystreaming.smithy4s:smithy4s-protocol:${BuildInfo.version}"

def toJson(
sources: ListSet[String],
Expand All @@ -38,7 +39,7 @@ private[codegen] object SmithyBuildJson {
version = "1.0",
sources,
SmithyBuildMaven(
dependencies+protocolDependency,
dependencies + protocolDependency,
repositories.map(SmithyBuildMavenRepository.apply)
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package smithy4s.codegen.internals

import smithy4s.codegen.{SmithyBuildJson,BuildInfo}
import smithy4s.codegen.{SmithyBuildJson, BuildInfo}
import software.amazon.smithy.model.shapes.ShapeId
import software.amazon.smithy.openapi.OpenApiVersion

Expand Down Expand Up @@ -211,22 +211,22 @@ final class SmithyBuildSpec extends munit.FunSuite {
assertEquals(
actual,
s"""|{
| "version" : "1.0",
| "sources" : [
| "src/"
| ],
| "maven" : {
| "dependencies" : [
| "dep",
| "com.disneystreaming.smithy4s:smithy4s-protocol:${BuildInfo.version}"
| ],
| "repositories" : [
| {
| "url" : "repo"
| }
| ]
| }
|}""".stripMargin
| "version" : "1.0",
| "sources" : [
| "src/"
| ],
| "maven" : {
| "dependencies" : [
| "dep",
| "com.disneystreaming.smithy4s:smithy4s-protocol:${BuildInfo.version}"
| ],
| "repositories" : [
| {
| "url" : "repo"
| }
| ]
| }
|}""".stripMargin
)
}
}

0 comments on commit 1b61b41

Please sign in to comment.