Skip to content

Commit 7c0a5d4

Browse files
authored
versionPolicyIntention := Compatibility.None (#439)
1 parent b4f020d commit 7c0a5d4

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.scalafmt.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
version = "3.10.1"
22
runner.dialect = scala213
33
maxColumn = 120
4+
trailingCommas = always

build.sbt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ lazy val zioTestcontainers = project
1010
name := "zio-testcontainers",
1111
libraryDependencies ++= List(
1212
Dependencies.zio,
13-
Dependencies.testcontainers
14-
)
13+
Dependencies.testcontainers,
14+
),
1515
)
1616
.enablePlugins(BuildInfoPlugin)
1717

@@ -24,17 +24,18 @@ lazy val commonSettings: List[Def.Setting[_]] = DecentScala.decentScalaSettings
2424
"sideeffffect",
2525
"Ondra Pelech",
2626
27-
url("https://github.com/sideeffffect")
28-
)
27+
url("https://github.com/sideeffffect"),
28+
),
2929
),
3030
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
3131
scalacOptions -= "-Xsource:3", // we cross-build for 2.11 too!
3232
missinglinkExcludedDependencies ++= List(
3333
moduleFilter(organization = "org.slf4j", name = "slf4j-api"),
34-
moduleFilter(organization = "org.testcontainers", name = "testcontainers")
34+
moduleFilter(organization = "org.testcontainers", name = "testcontainers"),
3535
),
3636
mimaBinaryIssueFilters ++= List(
37-
)
37+
),
38+
ThisBuild / versionPolicyIntention := Compatibility.None,
3839
)
3940

4041
addCommandAlias("ci", "; check; +publishLocal")

src/main/scala/zio/testcontainers/ZIOTestcontainers.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ import zio.{Scope, Tag, UIO, ULayer, URIO, ZIO, ZLayer}
88
object ZIOTestcontainers {
99

1010
def getHostAndPort(
11-
container: ComposeContainer
11+
container: ComposeContainer,
1212
)(serviceName: String)(servicePort: Int): UIO[(String, Int)] = for {
1313
host <- ZIO.succeed(container.getServiceHost(serviceName, servicePort))
1414
port <- ZIO.succeed(container.getServicePort(serviceName, servicePort))
1515
} yield (host, port)
1616

1717
def getHostAndPort(
18-
container: DockerComposeContainer
18+
container: DockerComposeContainer,
1919
)(serviceName: String)(servicePort: Int): UIO[(String, Int)] = for {
2020
host <- ZIO.succeed(container.getServiceHost(serviceName, servicePort))
2121
port <- ZIO.succeed(container.getServicePort(serviceName, servicePort))
2222
} yield (host, port)
2323

2424
def getHostAndPort[T <: JavaGenericContainer[_]](
25-
container: SingleContainer[T]
25+
container: SingleContainer[T],
2626
)(port: Int): UIO[(String, Int)] = for {
2727
host <- ZIO.succeed(container.host)
2828
port <- ZIO.succeed(container.mappedPort(port))

src/main/scala/zio/testcontainers/package.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package object testcontainers {
2121
}
2222

2323
implicit final class SingleContainerOps[T <: JavaGenericContainer[_]](
24-
private val self: SingleContainer[T]
24+
private val self: SingleContainer[T],
2525
) extends AnyVal {
2626

2727
def getHostAndPort(port: Int): UIO[(String, Int)] =

0 commit comments

Comments
 (0)