From 46d8ee712a12fd130df2854313622aec60848223 Mon Sep 17 00:00:00 2001 From: alexcardell <29524087+alexcardell@users.noreply.github.com> Date: Tue, 10 Sep 2024 23:27:30 +0100 Subject: [PATCH] Rename `open-feature` modules to `openfeature` --- build.sbt | 43 ++++++++++--------- .../examples/OpenFeatureExample.scala | 1 - .../provider/flipt/FliptProviderItTest.scala | 0 .../provider/flipt/TestVariant.scala | 0 .../provider/flipt/FliptProvider.scala | 0 .../openfeature/circe/CirceDecodeError.scala | 0 .../openfeature/circe/CirceParseError.scala | 0 .../circe/CirceStructureDecoder.scala | 0 .../cardell/openfeature/circe/package.scala | 0 .../io/cardell/openfeature/ErrorCode.scala | 0 .../openfeature/EvaluationContext.scala | 0 .../openfeature/EvaluationDetails.scala | 0 .../openfeature/EvaluationOptions.scala | 0 .../openfeature/EvaluationReason.scala | 0 .../cardell/openfeature/FeatureClient.scala | 0 .../openfeature/FeatureClientImpl.scala | 0 .../io/cardell/openfeature/OpenFeature.scala | 0 .../openfeature/StructureDecoder.scala | 0 .../openfeature/StructureDecoderError.scala | 0 .../openfeature/provider/Provider.scala | 0 .../provider/ProviderMetadata.scala | 0 .../openfeature/provider/ProviderStatus.scala | 0 .../provider/ResolutionDetails.scala | 0 .../openfeature/provider/package.scala | 0 24 files changed, 22 insertions(+), 22 deletions(-) rename {open-feature => openfeature}/provider-flipt-it/src/test/scala/io/cardell/openfeature/provider/flipt/FliptProviderItTest.scala (100%) rename {open-feature => openfeature}/provider-flipt-it/src/test/scala/io/cardell/openfeature/provider/flipt/TestVariant.scala (100%) rename {open-feature => openfeature}/provider-flipt/src/main/scala/io/cardell/openfeature/provider/flipt/FliptProvider.scala (100%) rename {open-feature => openfeature}/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceDecodeError.scala (100%) rename {open-feature => openfeature}/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceParseError.scala (100%) rename {open-feature => openfeature}/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceStructureDecoder.scala (100%) rename {open-feature => openfeature}/sdk-circe/src/main/scala/io/cardell/openfeature/circe/package.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/ErrorCode.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/EvaluationContext.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/EvaluationDetails.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/EvaluationOptions.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/EvaluationReason.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/FeatureClient.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/FeatureClientImpl.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/OpenFeature.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/StructureDecoder.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/StructureDecoderError.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/provider/Provider.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/provider/ProviderMetadata.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/provider/ProviderStatus.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/provider/ResolutionDetails.scala (100%) rename {open-feature => openfeature}/sdk/src/main/scala/io/cardell/openfeature/provider/package.scala (100%) diff --git a/build.sbt b/build.sbt index 8628b6c..235132a 100644 --- a/build.sbt +++ b/build.sbt @@ -30,9 +30,10 @@ Global / concurrentRestrictions += Tags.limit(Tags.Test, 1) lazy val projects = Seq( `flipt-sdk-server`, `flipt-sdk-server-it`, - `open-feature-sdk`, - `open-feature-provider-flipt`, - `open-feature-provider-flipt-it`, + `openfeature-sdk`, + `openfeature-provider-flipt`, + `openfeature-provider-flipt-it`, + examples, docs ) @@ -78,61 +79,61 @@ lazy val `flipt-sdk-server-it` = crossProject(JVMPlatform) ) .dependsOn(`flipt-sdk-server`) -lazy val `open-feature-sdk` = crossProject( +lazy val `openfeature-sdk` = crossProject( JVMPlatform, JSPlatform, NativePlatform ) .crossType(CrossType.Pure) - .in(file("open-feature/sdk")) + .in(file("openfeature/sdk")) .enablePlugins(NoPublishPlugin) .settings(commonDependencies) .settings( - name := "ff4s-open-feature-sdk" + name := "ff4s-openfeature-sdk" ) -lazy val `open-feature-sdk-circe` = crossProject( +lazy val `openfeature-sdk-circe` = crossProject( JVMPlatform, JSPlatform, NativePlatform ) .crossType(CrossType.Pure) - .in(file("open-feature/sdk-circe")) + .in(file("openfeature/sdk-circe")) .enablePlugins(NoPublishPlugin) .settings(commonDependencies) .settings( - name := "ff4s-open-feature-sdk-circe", + name := "ff4s-openfeature-sdk-circe", libraryDependencies ++= Seq( "io.circe" %%% "circe-core" % "0.14.7", "io.circe" %%% "circe-parser" % "0.14.7" ) ) - .dependsOn(`open-feature-sdk`) + .dependsOn(`openfeature-sdk`) -lazy val `open-feature-provider-flipt` = crossProject( +lazy val `openfeature-provider-flipt` = crossProject( JVMPlatform, JSPlatform, NativePlatform ) .crossType(CrossType.Pure) - .in(file("open-feature/provider-flipt")) + .in(file("openfeature/provider-flipt")) .enablePlugins(NoPublishPlugin) .settings(commonDependencies) .settings( - name := "ff4s-open-feature-provider-flipt" + name := "ff4s-openfeature-provider-flipt" ) .dependsOn( - `open-feature-sdk`, + `openfeature-sdk`, `flipt-sdk-server` ) -lazy val `open-feature-provider-flipt-it` = crossProject(JVMPlatform) +lazy val `openfeature-provider-flipt-it` = crossProject(JVMPlatform) .crossType(CrossType.Pure) - .in(file("open-feature/provider-flipt-it")) + .in(file("openfeature/provider-flipt-it")) .enablePlugins(NoPublishPlugin) .settings(commonDependencies) .settings( - name := "ff4s-open-feature-provider-flipt-it", + name := "ff4s-openfeature-provider-flipt-it", libraryDependencies ++= Seq( "org.http4s" %%% "http4s-ember-client" % "0.23.26" % Test, "com.dimafeng" %% "testcontainers-scala-munit" % "0.41.3" % Test, @@ -140,15 +141,15 @@ lazy val `open-feature-provider-flipt-it` = crossProject(JVMPlatform) ) ) .dependsOn( - `open-feature-provider-flipt`, - `open-feature-sdk-circe` + `openfeature-provider-flipt`, + `openfeature-sdk-circe` ) lazy val examples = crossProject(JVMPlatform) .crossType(CrossType.Pure) .in(file("examples")) .enablePlugins(NoPublishPlugin) - .dependsOn(`open-feature-provider-flipt`) + .dependsOn(`openfeature-provider-flipt`) lazy val docs = project .in(file("site")) @@ -166,6 +167,6 @@ lazy val docs = project "org.http4s" %%% "http4s-ember-client" % "0.23.26" ) ) - .dependsOn(`open-feature-provider-flipt`.jvm) + .dependsOn(`openfeature-provider-flipt`.jvm) addCommandAlias("fix", "headerCreateAll;scalafixAll;scalafmtAll;scalafmtSbt") diff --git a/examples/src/main/scala/io/cardell/openfeature/examples/OpenFeatureExample.scala b/examples/src/main/scala/io/cardell/openfeature/examples/OpenFeatureExample.scala index 0e1cf54..a42869f 100644 --- a/examples/src/main/scala/io/cardell/openfeature/examples/OpenFeatureExample.scala +++ b/examples/src/main/scala/io/cardell/openfeature/examples/OpenFeatureExample.scala @@ -1,6 +1,5 @@ package io.cardell.openfeature.examples -import io.cardell.ff4s.flipt.FliptApiImpl import cats.effect.IO import org.http4s.client.Client import io.cardell.ff4s.flipt.FliptApi diff --git a/open-feature/provider-flipt-it/src/test/scala/io/cardell/openfeature/provider/flipt/FliptProviderItTest.scala b/openfeature/provider-flipt-it/src/test/scala/io/cardell/openfeature/provider/flipt/FliptProviderItTest.scala similarity index 100% rename from open-feature/provider-flipt-it/src/test/scala/io/cardell/openfeature/provider/flipt/FliptProviderItTest.scala rename to openfeature/provider-flipt-it/src/test/scala/io/cardell/openfeature/provider/flipt/FliptProviderItTest.scala diff --git a/open-feature/provider-flipt-it/src/test/scala/io/cardell/openfeature/provider/flipt/TestVariant.scala b/openfeature/provider-flipt-it/src/test/scala/io/cardell/openfeature/provider/flipt/TestVariant.scala similarity index 100% rename from open-feature/provider-flipt-it/src/test/scala/io/cardell/openfeature/provider/flipt/TestVariant.scala rename to openfeature/provider-flipt-it/src/test/scala/io/cardell/openfeature/provider/flipt/TestVariant.scala diff --git a/open-feature/provider-flipt/src/main/scala/io/cardell/openfeature/provider/flipt/FliptProvider.scala b/openfeature/provider-flipt/src/main/scala/io/cardell/openfeature/provider/flipt/FliptProvider.scala similarity index 100% rename from open-feature/provider-flipt/src/main/scala/io/cardell/openfeature/provider/flipt/FliptProvider.scala rename to openfeature/provider-flipt/src/main/scala/io/cardell/openfeature/provider/flipt/FliptProvider.scala diff --git a/open-feature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceDecodeError.scala b/openfeature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceDecodeError.scala similarity index 100% rename from open-feature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceDecodeError.scala rename to openfeature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceDecodeError.scala diff --git a/open-feature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceParseError.scala b/openfeature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceParseError.scala similarity index 100% rename from open-feature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceParseError.scala rename to openfeature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceParseError.scala diff --git a/open-feature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceStructureDecoder.scala b/openfeature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceStructureDecoder.scala similarity index 100% rename from open-feature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceStructureDecoder.scala rename to openfeature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/CirceStructureDecoder.scala diff --git a/open-feature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/package.scala b/openfeature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/package.scala similarity index 100% rename from open-feature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/package.scala rename to openfeature/sdk-circe/src/main/scala/io/cardell/openfeature/circe/package.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/ErrorCode.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/ErrorCode.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/ErrorCode.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/ErrorCode.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/EvaluationContext.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/EvaluationContext.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/EvaluationContext.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/EvaluationContext.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/EvaluationDetails.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/EvaluationDetails.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/EvaluationDetails.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/EvaluationDetails.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/EvaluationOptions.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/EvaluationOptions.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/EvaluationOptions.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/EvaluationOptions.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/EvaluationReason.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/EvaluationReason.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/EvaluationReason.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/EvaluationReason.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/FeatureClient.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/FeatureClient.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/FeatureClient.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/FeatureClient.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/FeatureClientImpl.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/FeatureClientImpl.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/FeatureClientImpl.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/FeatureClientImpl.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/OpenFeature.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/OpenFeature.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/OpenFeature.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/OpenFeature.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/StructureDecoder.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/StructureDecoder.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/StructureDecoder.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/StructureDecoder.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/StructureDecoderError.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/StructureDecoderError.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/StructureDecoderError.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/StructureDecoderError.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/provider/Provider.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/provider/Provider.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/provider/Provider.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/provider/Provider.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/provider/ProviderMetadata.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/provider/ProviderMetadata.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/provider/ProviderMetadata.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/provider/ProviderMetadata.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/provider/ProviderStatus.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/provider/ProviderStatus.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/provider/ProviderStatus.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/provider/ProviderStatus.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/provider/ResolutionDetails.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/provider/ResolutionDetails.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/provider/ResolutionDetails.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/provider/ResolutionDetails.scala diff --git a/open-feature/sdk/src/main/scala/io/cardell/openfeature/provider/package.scala b/openfeature/sdk/src/main/scala/io/cardell/openfeature/provider/package.scala similarity index 100% rename from open-feature/sdk/src/main/scala/io/cardell/openfeature/provider/package.scala rename to openfeature/sdk/src/main/scala/io/cardell/openfeature/provider/package.scala