Skip to content

Commit

Permalink
0.8.0 Release Prep
Browse files Browse the repository at this point in the history
  • Loading branch information
scottweaver committed Jul 13, 2022
1 parent aff7f05 commit 32b5f4d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 31 deletions.
73 changes: 46 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,25 @@

[Link-Github]: https://github.com/scottweaver/testcontainers-for-zio "Github Repo Link"

[Link-SonatypeReleases-Kafka]: https://oss.sonatype.org/content/repositories/releases/io/github/scottweaver/zio-testcontainers-kafka_2.13/0.7.0/ "Sonatype Releases link"
[Badge-SonatypeReleases-Kafka]: https://img.shields.io/maven-central/v/io.github.scottweaver/zio-testcontainers-kafka_2.13/0.7.0?label=maven-central%20%20kafka "Sonatype Releases badge"
[Link-SonatypeReleases-Kafka]: https://oss.sonatype.org/content/repositories/releases/io/github/scottweaver/zio-testcontainers-kafka_2.13/0.8.0/ "Sonatype Releases link"
[Badge-SonatypeReleases-Kafka]: https://img.shields.io/maven-central/v/io.github.scottweaver/zio-testcontainers-kafka_2.13/0.8.0?label=maven-central%20%20kafka "Sonatype Releases badge"


[Link-SonatypeReleases-cassandra]: https://oss.sonatype.org/content/repositories/releases/io/github/scottweaver/zio-testcontainers-cassandra_2.13/0.7.0/ "Sonatype Releases link"
[Badge-SonatypeReleases-cassandra]: https://img.shields.io/maven-central/v/io.github.scottweaver/zio-testcontainers-cassandra_2.13/0.7.0?label=maven-central%20%20cassandra "Sonatype Releases badge"
[Link-SonatypeReleases-cassandra]: https://oss.sonatype.org/content/repositories/releases/io/github/scottweaver/zio-testcontainers-cassandra_2.13/0.8.0/ "Sonatype Releases link"
[Badge-SonatypeReleases-cassandra]: https://img.shields.io/maven-central/v/io.github.scottweaver/zio-testcontainers-cassandra_2.13/0.8.0?label=maven-central%20%20cassandra "Sonatype Releases badge"


[Link-SonatypeReleases-MySQL]: https://oss.sonatype.org/content/repositories/releases/io/github/scottweaver/zio-testcontainers-mysql_2.13/0.7.0/ "Sonatype Releases link"
[Badge-SonatypeReleases-MySQL]: https://img.shields.io/maven-central/v/io.github.scottweaver/zio-testcontainers-mysql_2.13/0.7.0?label=maven-central%20%20mysql "Sonatype Releases badge"
[Link-SonatypeReleases-MySQL]: https://oss.sonatype.org/content/repositories/releases/io/github/scottweaver/zio-testcontainers-mysql_2.13/0.8.0/ "Sonatype Releases link"
[Badge-SonatypeReleases-MySQL]: https://img.shields.io/maven-central/v/io.github.scottweaver/zio-testcontainers-mysql_2.13/0.8.0?label=maven-central%20%20mysql "Sonatype Releases badge"

[Link-SonatypeReleases-Postgresql]: https://oss.sonatype.org/content/repositories/releases/io/github/scottweaver/zio-testcontainers-postgresql_2.13/0.7.0/ "Sonatype Releases link"
[Badge-SonatypeReleases-Postgresql]: https://img.shields.io/maven-central/v/io.github.scottweaver/zio-testcontainers-postgresql_2.13/0.7.0?label=maven-central%20%20postgresql "Sonatype Releases badge"
[Link-SonatypeReleases-Postgresql]: https://oss.sonatype.org/content/repositories/releases/io/github/scottweaver/zio-testcontainers-postgresql_2.13/0.8.0/ "Sonatype Releases link"
[Badge-SonatypeReleases-Postgresql]: https://img.shields.io/maven-central/v/io.github.scottweaver/zio-testcontainers-postgresql_2.13/0.8.0?label=maven-central%20%20postgresql "Sonatype Releases badge"

[Link-SonatypeReleases-DbMigrationAspect]: https://oss.sonatype.org/content/repositories/releases/io/github/scottweaver/zio-db-migration-aspect_2.13/0.7.0/ "Sonatype Releases link"
[Badge-SonatypeReleases-DbMigrationAspect]: https://img.shields.io/maven-central/v/io.github.scottweaver/zio-db-migration-aspect_2.13/0.7.0?label=maven-central%20%20db-migration-aspect "Sonatype Releases badge"
[Link-SonatypeReleases-DbMigrationAspect]: https://oss.sonatype.org/content/repositories/releases/io/github/scottweaver/zio-db-migration-aspect_2.13/0.8.0/ "Sonatype Releases link"
[Badge-SonatypeReleases-DbMigrationAspect]: https://img.shields.io/maven-central/v/io.github.scottweaver/zio-db-migration-aspect_2.13/0.8.0?label=maven-central%20%20db-migration-aspect "Sonatype Releases badge"

[Link-SonatypeReleases-LiquibaseAspect]: https://oss.sonatype.org/content/repositories/releases/io/github/scottweaver/zio-2-liquibase-aspect_2.13/0.8.0/ "Sonatype Releases link"
[Badge-SonatypeReleases-LiquibaseAspect]: https://img.shields.io/maven-central/v/io.github.scottweaver/zio-2-liquibase-aspect_2.13/0.8.0?label=maven-central%20%20zio-2-liquibase-aspect "Sonatype Releases badge"

Provides idiomatic, easy-to-use ZLayers for [Testcontainers-scala](https://github.com/testcontainers/testcontainers-scala).

Expand Down Expand Up @@ -67,16 +70,16 @@ The testcontainer runtime can get pretty noisy when it comes to logging. To red

[![Release Artifacts][Badge-SonatypeReleases-cassandra]][Link-SonatypeReleases-cassandra]

Provides a managed ZLayer that starts and stops a `com.dimafeng.testcontainers.CassandraContainer` as well as also provding a managed `com.datastax.oss.driver.api.core.CqlSession`.
Provides a managed ZLayer that starts and stops a `com.dimafeng.testcontainers.CassandraContainer` as well as also providing a managed `com.datastax.oss.driver.api.core.CqlSession`.

### ZIO 1.x
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-testcontainers-cassandra" % "0.7.0"
libraryDependencies += "io.github.scottweaver" %% "zio-testcontainers-cassandra" % "0.8.0"
```

### ZIO 2.x
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-2-0-testcontainers-cassandra" % "0.7.0"
libraryDependencies += "io.github.scottweaver" %% "zio-2-0-testcontainers-cassandra" % "0.8.0"
```

See test cases for example usage.
Expand All @@ -85,16 +88,16 @@ See test cases for example usage.

[![Release Artifacts][Badge-SonatypeReleases-MySQL]][Link-SonatypeReleases-MySQL]

Provides a managed ZLayer that starts and stops a `com.dimafeng.testcontainers.MySQLTestContainer` as well as also provding a managed `java.sql.Connection`.
Provides a managed ZLayer that starts and stops a `com.dimafeng.testcontainers.MySQLTestContainer` as well as also providing a managed `java.sql.Connection` and a `javax.sql.DataSource`.

### ZIO 1.x
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-testcontainers-mysql" % "0.7.0"
libraryDependencies += "io.github.scottweaver" %% "zio-testcontainers-mysql" % "0.8.0"
```

### ZIO 2.x
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-2-0-testcontainers-mysql" % "0.7.0"
libraryDependencies += "io.github.scottweaver" %% "zio-2-0-testcontainers-mysql" % "0.8.0"
```

See test cases for example usage.
Expand All @@ -103,16 +106,16 @@ See test cases for example usage.

[![Release Artifacts][Badge-SonatypeReleases-Postgresql]][Link-SonatypeReleases-Postgresql]

Provides a managed ZLayer that starts and stops a `com.dimafeng.testcontainers.PostgreSQLContainer` as well as also provding a managed `java.sql.Connection`.
Provides a managed ZLayer that starts and stops a `com.dimafeng.testcontainers.PostgreSQLContainer` as well as also providing a managed `java.sql.Connection` and a `javax.sql.DataSource`.

### ZIO 1.x
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-testcontainers-postgresql" % "0.7.0"
libraryDependencies += "io.github.scottweaver" %% "zio-testcontainers-postgresql" % "0.8.0"
```

### ZIO 2.x
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-2-0-testcontainers-postgresql" % "0.7.0"
libraryDependencies += "io.github.scottweaver" %% "zio-2-0-testcontainers-postgresql" % "0.8.0"
```

See test cases for example usage.
Expand All @@ -133,12 +136,12 @@ You can use these to create a `zio.kafka.consumer.Consumer` and/or `zio.kafka.pr

### ZIO 1.x
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-testcontainers-kafka" % "0.7.0"
libraryDependencies += "io.github.scottweaver" %% "zio-testcontainers-kafka" % "0.8.0"
```

### ZIO 2.x
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-2.0-testcontainers-kafka" % "0.7.0"
libraryDependencies += "io.github.scottweaver" %% "zio-2.0-testcontainers-kafka" % "0.8.0"
```


Expand All @@ -150,18 +153,34 @@ See test cases for example usage.

Not really a test container, useful none the less.

The `io.github.scottweaver.zio.aspect.DatabaseMigrationsAspect` provides a [ZIO TestAspect](https://javadoc.io/doc/dev.zio/zio-test_2.13/1.0.12/zio/test/TestAspect.html) for running database migrations via [Flyway](https://flywaydb.org/). It seemlessly integrates with the `ZMySQLContainer` by using the `io.github.scottweaver.zio.models.JdbcInfo` provided by `ZMySQLContainer.live` to run your migrations.
The `io.github.scottweaver.zio.aspect.DatabaseMigrationsAspect` provides a [ZIO TestAspect](https://javadoc.io/doc/dev.zio/zio-test_2.13/latest/zio/test/TestAspect.html) for running database migrations via [Flyway](https://flywaydb.org/). It seamlessly integrates with the `ZMySQLContainer` or `ZPostrgeSQLContainer` by using the `io.github.scottweaver.zio.models.JdbcInfo` provided by `ZMySQLContainer.live` or `ZPostrgeSQLContainer.live` to run your migrations.

If you are not using `ZMySQLContainer` you can just manually provide an appropriate `JdbcInfo` as a `ZLayer` to your tests that are using the `DbMigrationAspect`.
If you are not using `ZMySQLContainer` or `ZPostrgeSQLContainer` you can just manually provide an appropriate `JdbcInfo` as a `ZLayer` to your tests that are using the `DbMigrationAspect`.

### ZIO 1.X
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-db-migration-aspect" % "0.7.0"
libraryDependencies += "io.github.scottweaver" %% "zio-db-migration-aspect" % "0.8.0"
```

### ZIO 2.X
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-2-0-db-migration-aspect" % "0.8.0"
```

## Liquibase Aspect

[![Release Artifacts][Badge-SonatypeReleases-LiquibaseAspect]][Link-SonatypeReleases-LiquibaseAspect]

An alternative to the Flyway-based `DbMigrationsAspect` that uses Liquibase instead.

The `io.github.scottweaver.zio.aspect.LiquibaseAspect` provides a [ZIO TestAspect](https://javadoc.io/doc/dev.zio/zio-test_2.13/latest/zio/test/TestAspect.html) for running database migrations via [Liquibase](https://liquibase.org/). It seamlessly integrates with the `ZMySQLContainer` or `ZPostrgeSQLContainer` by using the `io.github.scottweaver.zio.models.JdbcInfo` provided by `ZMySQLContainer.live` or `ZPostrgeSQLContainer.live` to run your Changelog migrations.

If you are not using `ZMySQLContainer` or `ZPostgreSQLContainer` you can just manually provide an appropriate `JdbcInfo` as a `ZLayer` to your tests that are using the `LiquibaseAspect`.


### ZIO 2.X
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-2-0-db-migration-aspect" % "0.7.0"
libraryDependencies += "io.github.scottweaver" %% "zio-2.0-liquibase-aspect" % "0.8.0"
```

## Cassandra Migrations Aspect
Expand All @@ -176,12 +195,12 @@ If you are not using `ZCassandraContainer` you can just manually provide an appr

### ZIO 1.X
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-cassandra-migration-aspect" % "0.7.0"
libraryDependencies += "io.github.scottweaver" %% "zio-cassandra-migration-aspect" % "0.8.0"
```

### ZIO 2.X
```scala
libraryDependencies += "io.github.scottweaver" %% "zio-2-0-cassandra-migration-aspect" % "0.7.0"
libraryDependencies += "io.github.scottweaver" %% "zio-2-0-cassandra-migration-aspect" % "0.8.0"
```


Expand Down
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ lazy val `db-migration-aspect-Zio2` = project
)
.dependsOn(models, mysqlZio2 % "test->test")

lazy val liquibaseMigrationAspect = project
.in(file("modules/liquibase-aspect-zio-2.0"))
lazy val liquibaseAspect = project
.in(file("modules/zio-2.0-liquibase-aspect"))
.settings(settings(V.zio2Version))
.settings(
name := "zio-2.0-db-migration-aspect",
name := "zio-2.0-liquibase-aspect",
libraryDependencies ++= Seq(
"org.liquibase" % "liquibase-core" % V.liquibaseVersion,
"dev.zio" %% "zio-test" % V.zio2Version
Expand Down Expand Up @@ -247,7 +247,7 @@ lazy val commandAliases =
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck") ++
addCommandAlias(
"publishAll",
"+cassandra/publishSigned; +cassandraZio2/publishSigned; +models/publishSigned; +mysql/publishSigned; +mysqlZio2/publishSigned; +postgres/publishSigned; +postgresZio2/publishSigned; +kafka/publishSigned; +kafkaZio2/publishSigned; +db-migration-aspect/publishSigned; +db-migration-aspect-Zio2/publishSigned; +cassandra-migration-aspect/publishSigned; +cassandra-migration-aspect-Zio2/publishSigned"
"+cassandra/publishSigned; +cassandraZio2/publishSigned; +models/publishSigned; +mysql/publishSigned; +mysqlZio2/publishSigned; +postgres/publishSigned; +postgresZio2/publishSigned; +kafka/publishSigned; +kafkaZio2/publishSigned; +db-migration-aspect/publishSigned; +db-migration-aspect-Zio2/publishSigned; +zio-2.0-liquibase-aspect/publishSigned; +cassandra-migration-aspect/publishSigned; +cassandra-migration-aspect-Zio2/publishSigned"
)

lazy val stdOpts212 = Seq(
Expand Down

0 comments on commit 32b5f4d

Please sign in to comment.