Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
move pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
jjba23 committed Sep 30, 2024
1 parent da1ca9c commit fd19e5e
Show file tree
Hide file tree
Showing 21 changed files with 63 additions and 34 deletions.
30 changes: 27 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import scala.util.control.NonFatal
import xerial.sbt.Sonatype.sonatypeCentralHost
import xerial.sbt.Sonatype._

sonatypeProjectHosting := Some(
ThisBuild / sonatypeProjectHosting := Some(
GitHubHosting("jjba23", "zzspec", "jjbigorra@gmail.com")
)

ThisBuild / sonatypeCredentialHost := sonatypeCentralHost

ThisBuild / publishTo := sonatypePublishToBundle.value

ThisBuild / version := "0.8.7"
ThisBuild / version := "0.8.10"

name := "zzspec"
name := "io.github.jjba23.zzspec"

ThisBuild / resolvers += "Mulesoft".at(
"https://repository.mulesoft.org/nexus/content/repositories/public/"
Expand All @@ -33,3 +33,27 @@ ThisBuild / licenses := Seq(
)

ThisBuild / sonatypeProfileName := "io.github.jjba23"

ThisBuild / homepage := Some(url("https://github.com/jjba23/zzspec"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/jjba23/zzspec"),
"scm:git@github.com:jjba23/zzspec.git"
)
)

ThisBuild / developers := List(
Developer(
id = "jjba23",
name = "Josep Bigorra",
email = "jjbigorra@gmail.com",
url = url("https://github.com/jjba23")
)
)

ThisBuild / credentials += Credentials(
"GnuPG Key ID",
"gpg",
"C19D36C1B0EFAACEA3E5EF1094C62486A9D59BEF", // key identifier
"ignored" // this field is ignored; passwords are supplied by pinentry
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"stringValue" : "stringValue",
"intValue" : 999,
"stringListValue" : [ "a", "b", "c" ]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec
package io.github.jjba23.zzspec

final case class EnvVar[T](key: String, value: T) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec
package io.github.jjba23.zzspec

import zio._

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec
package io.github.jjba23.zzspec

import com.fasterxml.jackson.databind.{JsonNode, ObjectMapper}
import org.testcontainers.containers.Network
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec.http
package io.github.jjba23.zzspec.http

import zio._
import zio.http._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec.kafka
package io.github.jjba23.zzspec.kafka

import org.apache.kafka.clients
import org.apache.kafka.clients.admin.{Admin => AdminClient, AdminClientConfig}
Expand All @@ -8,7 +8,7 @@ import org.testcontainers.kafka.KafkaContainer
import zio._
import zio.kafka.producer.Producer
import zio.kafka.serde._
import zzspec.ZZSpec._
import io.github.jjba23.zzspec.ZZSpec._

import java.util.Properties
import scala.jdk.CollectionConverters._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec.kafka
package io.github.jjba23.zzspec.kafka

import org.testcontainers.kafka.KafkaContainer
import org.testcontainers.kafka.{KafkaContainer => KafkaTestContainer}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec.kafka
package io.github.jjba23.zzspec.kafka

import org.testcontainers.containers.Network
import org.testcontainers.containers.output.Slf4jLogConsumer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec.kafka
package io.github.jjba23.zzspec.kafka

import org.testcontainers.kafka.{KafkaContainer => KafkaTestContainer}
import zio._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package zzspec.mockserver
package io.github.jjba23.zzspec.mockserver

import org.mockserver.client.MockServerClient
import zio.{ZIO, ZLayer}
import zzspec.mockserver.MockServerContainer._
import io.github.jjba23.zzspec.mockserver.MockServerContainer._

object MockServer {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec.mockserver
package io.github.jjba23.zzspec.mockserver

import org.testcontainers.containers.output.Slf4jLogConsumer
import org.testcontainers.containers.{GenericContainer, Network}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package zzspec.opensearch
package io.github.jjba23.zzspec.opensearch

import com.sksamuel.elastic4s._
import com.sksamuel.elastic4s.http.ElasticDsl._
import com.sksamuel.elastic4s.http.{ElasticClient, ElasticProperties}
import com.sksamuel.elastic4s.searches.SearchRequest
import zio.{Scope, Task, ZIO, ZLayer}
import zzspec.opensearch.OpensearchContainer._
import io.github.jjba23.zzspec.opensearch.OpensearchContainer._

object Opensearch {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec.opensearch
package io.github.jjba23.zzspec.opensearch

import org.opensearch.testcontainers.{OpensearchContainer => OpensearchTestContainer}
import org.testcontainers.containers.Network
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec.postgresql
package io.github.jjba23.zzspec.postgresql

import org.testcontainers.containers.output.Slf4jLogConsumer
import org.testcontainers.containers.{Network, PostgreSQLContainer => PostgreSQLTestContainer}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec.postgresql
package io.github.jjba23.zzspec.postgresql

import zio._
import slick.jdbc.PostgresProfile.api._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zzspec.slick
package io.github.jjba23.zzspec.slick

import zio._
import slick.jdbc.PostgresProfile.api._
Expand Down
8 changes: 4 additions & 4 deletions zzspec/src/test/scala/kafkatest/KafkaSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import zio._
import zio.kafka.consumer.{Consumer, Subscription}
import zio.kafka.serde.Serde
import zio.test._
import zzspec.ZZContract._
import zzspec.ZZSpec._
import zzspec.kafka.Kafka._
import zzspec.kafka._
import io.github.jjba23.zzspec.ZZContract._
import io.github.jjba23.zzspec.ZZSpec._
import io.github.jjba23.zzspec.kafka.Kafka._
import io.github.jjba23.zzspec.kafka._

object KafkaSpec extends ZIOSpecDefault {

Expand Down
6 changes: 3 additions & 3 deletions zzspec/src/test/scala/mockservertest/MockServerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import org.mockserver.model.HttpResponse.response
import zio._
import zio.http._
import zio.test._
import zzspec.ZZSpec.{containerLogger, networkLayer}
import zzspec.http.Http._
import zzspec.mockserver.{MockServer, MockServerContainer}
import io.github.jjba23.zzspec.ZZSpec.{containerLogger, networkLayer}
import io.github.jjba23.zzspec.http.Http._
import io.github.jjba23.zzspec.mockserver.{MockServer, MockServerContainer}

object MockServerSpec extends ZIOSpecDefault {

Expand Down
6 changes: 3 additions & 3 deletions zzspec/src/test/scala/opensearchtest/OpensearchSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import io.circe.parser._
import io.circe.syntax._
import zio._
import zio.test._
import zzspec.ZZSpec.{containerLogger, networkLayer}
import zzspec.opensearch.Opensearch._
import zzspec.opensearch.{Opensearch, OpensearchContainer}
import io.github.jjba23.zzspec.ZZSpec.{containerLogger, networkLayer}
import io.github.jjba23.zzspec.opensearch.Opensearch._
import io.github.jjba23.zzspec.opensearch.{Opensearch, OpensearchContainer}

import java.util.UUID
import scala.util.Try
Expand Down
6 changes: 3 additions & 3 deletions zzspec/src/test/scala/postgresqltest/PostgreSQLSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package postgresqltest

import zio._
import zio.test._
import zzspec.ZZSpec.{containerLogger, networkLayer}
import zzspec.slick.SlickPostgres._
import zzspec.postgresql._
import io.github.jjba23.zzspec.ZZSpec.{containerLogger, networkLayer}
import io.github.jjba23.zzspec.slick.SlickPostgres._
import io.github.jjba23.zzspec.postgresql._
import slick.jdbc.PostgresProfile.api._
import java.util.UUID
import scala.concurrent.ExecutionContext
Expand Down

0 comments on commit fd19e5e

Please sign in to comment.