diff --git a/src/main/resources/collector-micro.conf b/src/main/resources/collector-micro.conf index ec1020b..e7c6364 100644 --- a/src/main/resources/collector-micro.conf +++ b/src/main/resources/collector-micro.conf @@ -1,8 +1,4 @@ collector { - license { - accept = false - accept = ${?ACCEPT_LIMITED_USE_LICENSE} - } interface = "0.0.0.0" port = 9090 ssl { diff --git a/src/main/scala/com.snowplowanalytics.snowplow.micro/Run.scala b/src/main/scala/com.snowplowanalytics.snowplow.micro/Run.scala index bdf45d2..e3a9fc4 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.micro/Run.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.micro/Run.scala @@ -11,7 +11,7 @@ package com.snowplowanalytics.snowplow.micro import cats.data.EitherT -import cats.effect.{ExitCode, IO, Resource, Sync} +import cats.effect.{ExitCode, IO, Resource} import cats.implicits._ import com.monovore.decline.Opts import com.snowplowanalytics.iglu.client.resolver.registries.JavaNetRegistryLookup @@ -41,7 +41,6 @@ object Run { Configuration.load().map { configuration => handleAppErrors { configuration - .flatTap(config => checkLicense(config.collector.license.accept)) .semiflatMap { validMicroConfig => buildEnvironment(validMicroConfig) .use(_ => IO.never) @@ -137,18 +136,6 @@ object Run { } } - private def checkLicense(acceptLicense: Boolean): EitherT[IO, String, Unit] = - EitherT.liftF { - if (acceptLicense) - IO.unit - else - IO.raiseError( - new IllegalStateException( - "Please accept the terms of the Snowplow Limited Use License Agreement to proceed. See https://docs.snowplow.io/docs/pipeline-components-and-applications/stream-collector/configure/#license for more information on the license and how to configure this." - ) - ) - } - private def handleAppErrors(appOutput: EitherT[IO, String, ExitCode]): IO[ExitCode] = { appOutput .leftSemiflatMap { error => diff --git a/src/test/resources/collector-micro.conf b/src/test/resources/collector-micro.conf deleted file mode 100644 index d01c438..0000000 --- a/src/test/resources/collector-micro.conf +++ /dev/null @@ -1,5 +0,0 @@ -collector { - license { - accept = true - } -} \ No newline at end of file