From 04fd9d8556126b5ba27ed804c7ecb5b26e9b8833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Poniedzia=C5=82ek?= Date: Fri, 16 Feb 2024 14:24:03 +0100 Subject: [PATCH] Update the license to Snowplow Limited Use License Agreement 1.0 --- LICENSE.md | 32 +++++++++++-------- README.md | 7 ++-- build.sbt | 3 +- project/Settings.scala | 18 +++++++++++ project/plugins.sbt | 1 + src/main/resources/collector-micro.conf | 8 +++++ src/main/resources/default-iglu-resolver.conf | 8 +++++ .../EventConverter.scala | 16 ++++------ .../decode/GenericConverter.scala | 16 ++++------ .../decode/RowConverter.scala | 16 ++++------ .../decode/ValueConverter.scala | 16 ++++------ .../Configuration.scala | 6 ++-- .../Main.scala | 16 ++++------ .../MemorySink.scala | 16 ++++------ .../MicroHttpServer.scala | 10 ++++++ .../Routing.scala | 10 ++++++ .../Run.scala | 6 ++-- .../ValidationCache.scala | 16 ++++------ .../model.scala | 16 ++++------ .../EventConverterSpec.scala | 16 ++++------ .../ConfigHelperSpec.scala | 16 ++++------ .../MemorySinkSpec.scala | 16 ++++------ .../MicroApiSpec.scala | 10 ++++++ .../TestAdapterRegistry.scala | 10 ++++++ .../ValidationCacheSpec.scala | 16 ++++------ .../events.scala | 16 ++++------ 26 files changed, 197 insertions(+), 140 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 4aa67ca..6abbe69 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,14 +1,20 @@ -# Snowplow Community License Agreement +# Snowplow Limited Use License Agreement -_Version 1.0, January 2023_ +_Version 1.0, January 2024_ -This Snowplow Community License Agreement, Version 1.0 (the “Agreement”) sets forth the terms on which Snowplow Analytics, Ltd. (“Snowplow”) makes available certain software made available by Snowplow under this Agreement (the “Software”). BY INSTALLING, DOWNLOADING, ACCESSING, OR USING ANY OF THE SOFTWARE, YOU AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO SUCH TERMS AND CONDITIONS, YOU MUST NOT USE THE SOFTWARE. IF YOU ARE RECEIVING THE SOFTWARE ON BEHALF OF A LEGAL ENTITY, YOU REPRESENT AND WARRANT THAT YOU HAVE THE ACTUAL AUTHORITY TO AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT ON BEHALF OF SUCH ENTITY. “Licensee” means you, an individual, or the entity on whose behalf you are receiving the Software. +This Snowplow Limited Use License Agreement, Version 1.0 (the “Agreement”) sets forth the terms on which Snowplow Analytics, Ltd. (“Snowplow”) makes available certain software (the “Software”). BY INSTALLING, DOWNLOADING, ACCESSING, OR USING ANY OF THE SOFTWARE, YOU AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO SUCH TERMS AND CONDITIONS, YOU MUST NOT USE THE SOFTWARE. IF YOU ARE RECEIVING THE SOFTWARE ON BEHALF OF A LEGAL ENTITY, YOU REPRESENT AND WARRANT THAT YOU HAVE THE ACTUAL AUTHORITY TO AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT ON BEHALF OF SUCH ENTITY. “Licensee” means you, an individual, or the entity on whose behalf you are receiving the Software. ## LICENSE GRANT AND CONDITIONS -**1.1 License.** Subject to the terms and conditions of this Agreement, Snowplow hereby grants to Licensee a non-exclusive, royalty-free, worldwide, non-transferable, non-sublicenseable license during the term of this Agreement to: (a) use the Software; (b) prepare modifications and derivative works of the Software; and (c) reproduce copies of the Software (the “License”). No right to distribute or make available the Software is granted under this License. Licensee is not granted the right to, and Licensee shall not, exercise the License for an Excluded Purpose. For purposes of this Agreement, “Excluded Purpose” means making available any on-premises or distributed software product, software-as-a-service, platform-as-a-service, infrastructure-as-a-service, or other similar online service, that competes with any products or services that Snowplow or any of its affiliates provides using the Software. +**1.1 License.** Subject to the terms and conditions of this Agreement, Snowplow hereby grants to Licensee a non-exclusive, royalty-free, worldwide, non-transferable, non-sublicensable license during the term of this Agreement to: (a) use the Software; (b) prepare modifications and derivative works of the Software; and (c) reproduce copies of the Software (the “License”). No right to distribute or make available the Software is granted under this License. Licensee is not granted the right to, and Licensee shall not, exercise the License for any Excluded Purpose. -**1.2 Conditions.** In consideration of the License, Licensee’s distribution of the Software is subject to the following conditions: +**1.2** For purposes of this Agreement, an “Excluded Purpose” is any use that is either a Competing Use or a Highly-Available Production Use, or both of them. + +* **1.2.1** A “Competing Use” is making available any on-premises or distributed software product, or any software-as-a-service, platform-as-a-service, infrastructure-as-a-service, or other similar online service, that competes with any products or services that Snowplow or any of its affiliates provides using the Software. + +* **1.2.2** Highly-Available Production Use is any highly-available use, including without limitation any use where multiple instances of any Software component run concurrently to avoid a single point of failure, in a production environment, where production means use on live data. + +**1.3 Conditions.** In consideration of the License, Licensee’s use of the Software is subject to the following conditions: * **a.** Licensee must cause any Software modified by Licensee to carry prominent notices stating that Licensee modified the Software. @@ -16,15 +22,15 @@ This Snowplow Community License Agreement, Version 1.0 (the “Agreement”) set ``` This software is made available by Snowplow Analytics, Ltd., - under the terms of the Snowplow Community License Agreement, Version 1.0 - located at https://docs.snowplow.io/community-license-1.0 - BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY OF THE SOFTWARE, - YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. + under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + located at https://docs.snowplow.io/limited-use-license-1.0 + BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. ``` -**1.3 Licensee Modifications.** Licensee may add its own copyright notices to modifications made by Licensee. +**1.4 Licensee Modifications.** Licensee may add its own copyright notices to modifications made by Licensee. -**1.4 No Sublicensing.** The License does not include the right to sublicense the Software, however, each recipient to which Licensee provides the Software may exercise the Licenses so long as such recipient agrees to the terms and conditions of this Agreement. +**1.5 No Sublicensing.** The License does not include the right to sublicense the Software, however, each recipient to which Licensee provides the Software may exercise the Licenses so long as such recipient agrees to the terms and conditions of this Agreement. ## TERM AND TERMINATION @@ -40,7 +46,7 @@ SNOWPLOW HEREBY DISCLAIMS ANY AND ALL WARRANTIES AND CONDITIONS, EXPRESS, IMPLIE ## LIMITATION OF LIABILITY -SNOWPLOW WILL NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMITED TO, LOST PROFITS OR ANY CONSEQUENTIAL, SPECIAL, INCIDENTAL, INDIRECT, OR DIRECT DAMAGES, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ARISING OUT OF THIS AGREEMENT. THE FOREGOING SHALL APPLY TO THE EXTENT PERMITTED BY APPLICABLE LAW. +SNOWPLOW WILL NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMITED TO LOST PROFITS OR ANY CONSEQUENTIAL, SPECIAL, INCIDENTAL, INDIRECT, OR DIRECT DAMAGES, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ARISING OUT OF THIS AGREEMENT. THE FOREGOING SHALL APPLY TO THE EXTENT PERMITTED BY APPLICABLE LAW. ## GENERAL @@ -48,4 +54,4 @@ SNOWPLOW WILL NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMIT **6.2. Assignment.** Licensee is not authorized to assign its rights under this Agreement to any third party. Snowplow may freely assign its rights under this Agreement to any third party. -**6.3. Other.** This Agreement is the entire agreement between the parties regarding the subject matter hereof. No amendment or modification of this Agreement will be valid or binding upon the parties unless made in writing and signed by the duly authorized representatives of both parties. In the event that any provision, including without limitation any condition, of this Agreement is held to be unenforceable, this Agreement and all licenses and rights granted hereunder will immediately terminate. Waiver by Snowplow of a breach of any provision of this Agreement or the failure by Snowplow to exercise any right hereunder will not be construed as a waiver of any subsequent breach of that right or as a waiver of any other right. \ No newline at end of file +**6.3. Other.** This Agreement is the entire agreement between the parties regarding the subject matter hereof. No amendment or modification of this Agreement will be valid or binding upon the parties unless made in writing and signed by the duly authorized representatives of both parties. In the event that any provision, including without limitation any condition, of this Agreement is held to be unenforceable, this Agreement and all licenses and rights granted hereunder will immediately terminate. Waiver by Snowplow of a breach of any provision of this Agreement or the failure by Snowplow to exercise any right hereunder will not be construed as a waiver of any subsequent breach of that right or as a waiver of any other right. diff --git a/README.md b/README.md index 5e30eea..f1e0a51 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ sbt test Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. -Licensed under the [Snowplow Community License](https://docs.snowplow.io/community-license-1.0). _(If you are uncertain how it applies to your use case, check our answers to [frequently asked questions](https://docs.snowplow.io/docs/contributing/community-license-faq/).)_ +Licensed under the [Snowplow Limited Use License Agreement][license]. _(If you are uncertain how it applies to your use case, check our answers to [frequently asked questions][faq].)_ [docker-micro]: https://hub.docker.com/r/snowplow/snowplow-micro [docker-image]: https://img.shields.io/docker/v/snowplow/snowplow-micro?sort=semver @@ -45,8 +45,9 @@ Licensed under the [Snowplow Community License](https://docs.snowplow.io/communi [gh-actions-image]: https://github.com/snowplow-incubator/snowplow-micro/actions/workflows/test.yml/badge.svg?branch=master [gh-releases]: https://github.com/snowplow-incubator/snowplow-micro/releases -[license]: https://docs.snowplow.io/docs/contributing/community-license-faq/ -[license-image]: https://img.shields.io/badge/license-Snowplow--Community-blue.svg?style=flat +[license]: https://docs.snowplow.io/limited-use-license-1.0 +[license-image]: https://img.shields.io/badge/license-Snowplow--Limited--Use-blue.svg?style=flat +[faq]: https://docs.snowplow.io/docs/contributing/limited-use-license-faq/ [snowplow]: https://github.com/snowplow/snowplow [discourse]: https://discourse.snowplow.io diff --git a/build.sbt b/build.sbt index 9705da7..3a9a1f9 100644 --- a/build.sbt +++ b/build.sbt @@ -57,6 +57,7 @@ lazy val commonSettings = buildSettings ++ buildInfoSettings ++ dynVerSettings ++ + Settings.licenseSettings ++ Settings.dynverOptions ++ Settings.assemblyOptions @@ -67,7 +68,7 @@ lazy val dockerCommon = Seq( Docker / daemonUserUid := None, dockerPermissionStrategy := DockerPermissionStrategy.CopyChown, dockerRepository := Some("snowplow"), - Universal / mappings += file("LICENSE.md") -> "LICENSE.md" + Universal / mappings += file("LICENSE.md") -> "/SNOWPLOW-LICENSE.md" ) lazy val microSettingsDistroless = dockerCommon ++ Seq( diff --git a/project/Settings.scala b/project/Settings.scala index 33b2a34..73bf107 100644 --- a/project/Settings.scala +++ b/project/Settings.scala @@ -20,8 +20,26 @@ import sbtassembly.AssemblyKeys._ // SBT DynVer import sbtdynver.DynVerPlugin.autoImport._ +import de.heikoseeberger.sbtheader.HeaderPlugin.autoImport._ + object Settings { + lazy val licenseSettings = Seq( + licenses += ("Snowplow Limited Use License Agreement", url("https://docs.snowplow.io/limited-use-license-1.0")), + headerLicense := Some(HeaderLicense.Custom( + """|Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. + | + |This software is made available by Snowplow Analytics, Ltd., + |under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + |located at https://docs.snowplow.io/limited-use-license-1.0 + |BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + |OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. + |""".stripMargin + )), + headerMappings := headerMappings.value + (HeaderFileType.conf -> HeaderCommentStyle.hashLineComment), + Compile / unmanagedResources += file("LICENSE.md") + ) + lazy val compilerOptions = Seq( "-deprecation", "-encoding", "UTF-8", diff --git a/project/plugins.sbt b/project/plugins.sbt index 3e59965..c06de5f 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -5,3 +5,4 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.8.2") addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.3") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0") addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1") +addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.10.0") diff --git a/src/main/resources/collector-micro.conf b/src/main/resources/collector-micro.conf index e7c6364..dbc41f7 100644 --- a/src/main/resources/collector-micro.conf +++ b/src/main/resources/collector-micro.conf @@ -1,3 +1,11 @@ +# Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. +# +# This software is made available by Snowplow Analytics, Ltd., +# under the terms of the Snowplow Limited Use License Agreement, Version 1.0 +# located at https://docs.snowplow.io/limited-use-license-1.0 +# BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION +# OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. + collector { interface = "0.0.0.0" port = 9090 diff --git a/src/main/resources/default-iglu-resolver.conf b/src/main/resources/default-iglu-resolver.conf index 784261b..2c15a1e 100644 --- a/src/main/resources/default-iglu-resolver.conf +++ b/src/main/resources/default-iglu-resolver.conf @@ -1,3 +1,11 @@ +# Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. +# +# This software is made available by Snowplow Analytics, Ltd., +# under the terms of the Snowplow Limited Use License Agreement, Version 1.0 +# located at https://docs.snowplow.io/limited-use-license-1.0 +# BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION +# OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. + { "schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-1", "data": { diff --git a/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/EventConverter.scala b/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/EventConverter.scala index 2635341..096a445 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/EventConverter.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/EventConverter.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2022 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.analytics.scalasdk import com.snowplowanalytics.snowplow.analytics.scalasdk.decode.{DecodeResult, GenericConverter} diff --git a/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/decode/GenericConverter.scala b/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/decode/GenericConverter.scala index 5fe3e9c..2acfb21 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/decode/GenericConverter.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/decode/GenericConverter.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2022 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.analytics.scalasdk.decode import shapeless._ diff --git a/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/decode/RowConverter.scala b/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/decode/RowConverter.scala index 8e5eec9..db0ab71 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/decode/RowConverter.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/decode/RowConverter.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2022 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.analytics.scalasdk.decode import shapeless._ diff --git a/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/decode/ValueConverter.scala b/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/decode/ValueConverter.scala index 325aaa6..33fd76f 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/decode/ValueConverter.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/decode/ValueConverter.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2022 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.analytics.scalasdk.decode import cats.syntax.either._ diff --git a/src/main/scala/com.snowplowanalytics.snowplow.micro/Configuration.scala b/src/main/scala/com.snowplowanalytics.snowplow.micro/Configuration.scala index 3395afa..7c4a3d3 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.micro/Configuration.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.micro/Configuration.scala @@ -1,6 +1,5 @@ -/** - * Copyright (c) 2013-present Snowplow Analytics Ltd. - * All rights reserved. +/* + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * * This software is made available by Snowplow Analytics, Ltd., * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 @@ -8,6 +7,7 @@ * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.micro import cats.data.EitherT diff --git a/src/main/scala/com.snowplowanalytics.snowplow.micro/Main.scala b/src/main/scala/com.snowplowanalytics.snowplow.micro/Main.scala index 0e8f570..5b7036f 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.micro/Main.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.micro/Main.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2023 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.micro import cats.effect.{ExitCode, IO} diff --git a/src/main/scala/com.snowplowanalytics.snowplow.micro/MemorySink.scala b/src/main/scala/com.snowplowanalytics.snowplow.micro/MemorySink.scala index ecd44de..a0506a9 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.micro/MemorySink.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.micro/MemorySink.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2022 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.micro import cats.data.{EitherT, Validated} diff --git a/src/main/scala/com.snowplowanalytics.snowplow.micro/MicroHttpServer.scala b/src/main/scala/com.snowplowanalytics.snowplow.micro/MicroHttpServer.scala index 6f24cf1..2664719 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.micro/MicroHttpServer.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.micro/MicroHttpServer.scala @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. + * + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. + */ + package com.snowplowanalytics.snowplow.micro import cats.effect.{IO, Resource} diff --git a/src/main/scala/com.snowplowanalytics.snowplow.micro/Routing.scala b/src/main/scala/com.snowplowanalytics.snowplow.micro/Routing.scala index 9a2d2d8..8c234e7 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.micro/Routing.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.micro/Routing.scala @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. + * + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. + */ + package com.snowplowanalytics.snowplow.micro import cats.effect.IO diff --git a/src/main/scala/com.snowplowanalytics.snowplow.micro/Run.scala b/src/main/scala/com.snowplowanalytics.snowplow.micro/Run.scala index e335027..81e6a9e 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.micro/Run.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.micro/Run.scala @@ -1,6 +1,5 @@ -/** - * Copyright (c) 2013-present Snowplow Analytics Ltd. - * All rights reserved. +/* + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * * This software is made available by Snowplow Analytics, Ltd., * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 @@ -8,6 +7,7 @@ * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.micro import cats.data.EitherT diff --git a/src/main/scala/com.snowplowanalytics.snowplow.micro/ValidationCache.scala b/src/main/scala/com.snowplowanalytics.snowplow.micro/ValidationCache.scala index 9179e1f..2de0766 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.micro/ValidationCache.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.micro/ValidationCache.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2022 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.micro /** In-memory cache containing the results of the validation (or not) of the tracking events. diff --git a/src/main/scala/com.snowplowanalytics.snowplow.micro/model.scala b/src/main/scala/com.snowplowanalytics.snowplow.micro/model.scala index 62db69d..9d9718c 100644 --- a/src/main/scala/com.snowplowanalytics.snowplow.micro/model.scala +++ b/src/main/scala/com.snowplowanalytics.snowplow.micro/model.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2022 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.micro import com.snowplowanalytics.snowplow.enrich.common.adapters.RawEvent diff --git a/src/test/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/EventConverterSpec.scala b/src/test/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/EventConverterSpec.scala index 36e38ab..0e4fb2d 100644 --- a/src/test/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/EventConverterSpec.scala +++ b/src/test/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/EventConverterSpec.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2022 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at https://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.analytics.scalasdk import org.specs2.mutable.Specification diff --git a/src/test/scala/com.snowplowanalytics.snowplow.micro/ConfigHelperSpec.scala b/src/test/scala/com.snowplowanalytics.snowplow.micro/ConfigHelperSpec.scala index ff511ec..a738467 100644 --- a/src/test/scala/com.snowplowanalytics.snowplow.micro/ConfigHelperSpec.scala +++ b/src/test/scala/com.snowplowanalytics.snowplow.micro/ConfigHelperSpec.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2022 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.micro import cats.effect.IO diff --git a/src/test/scala/com.snowplowanalytics.snowplow.micro/MemorySinkSpec.scala b/src/test/scala/com.snowplowanalytics.snowplow.micro/MemorySinkSpec.scala index d500be0..a69b4e7 100644 --- a/src/test/scala/com.snowplowanalytics.snowplow.micro/MemorySinkSpec.scala +++ b/src/test/scala/com.snowplowanalytics.snowplow.micro/MemorySinkSpec.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2022 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.micro import cats.effect.testing.specs2.CatsResource diff --git a/src/test/scala/com.snowplowanalytics.snowplow.micro/MicroApiSpec.scala b/src/test/scala/com.snowplowanalytics.snowplow.micro/MicroApiSpec.scala index 1a76055..5ca969c 100644 --- a/src/test/scala/com.snowplowanalytics.snowplow.micro/MicroApiSpec.scala +++ b/src/test/scala/com.snowplowanalytics.snowplow.micro/MicroApiSpec.scala @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. + * + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. + */ + package com.snowplowanalytics.snowplow.micro import cats.effect.IO diff --git a/src/test/scala/com.snowplowanalytics.snowplow.micro/TestAdapterRegistry.scala b/src/test/scala/com.snowplowanalytics.snowplow.micro/TestAdapterRegistry.scala index cc675e4..d4e76ef 100644 --- a/src/test/scala/com.snowplowanalytics.snowplow.micro/TestAdapterRegistry.scala +++ b/src/test/scala/com.snowplowanalytics.snowplow.micro/TestAdapterRegistry.scala @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. + * + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. + */ + package com.snowplowanalytics.snowplow.micro import com.snowplowanalytics.snowplow.enrich.common.adapters._ diff --git a/src/test/scala/com.snowplowanalytics.snowplow.micro/ValidationCacheSpec.scala b/src/test/scala/com.snowplowanalytics.snowplow.micro/ValidationCacheSpec.scala index f49c7f9..24d292a 100644 --- a/src/test/scala/com.snowplowanalytics.snowplow.micro/ValidationCacheSpec.scala +++ b/src/test/scala/com.snowplowanalytics.snowplow.micro/ValidationCacheSpec.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2022 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.micro import org.specs2.mutable.Specification diff --git a/src/test/scala/com.snowplowanalytics.snowplow.micro/events.scala b/src/test/scala/com.snowplowanalytics.snowplow.micro/events.scala index 0d23469..ae5ffdc 100644 --- a/src/test/scala/com.snowplowanalytics.snowplow.micro/events.scala +++ b/src/test/scala/com.snowplowanalytics.snowplow.micro/events.scala @@ -1,15 +1,13 @@ /* - * Copyright (c) 2019-2022 Snowplow Analytics Ltd. All rights reserved. + * Copyright (c) 2019-present Snowplow Analytics Ltd. All rights reserved. * - * This program is licensed to you under the Apache License Version 2.0, - * and you may not use this file except in compliance with the Apache License Version 2.0. - * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the Apache License Version 2.0 is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. + * This software is made available by Snowplow Analytics, Ltd., + * under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + * located at https://docs.snowplow.io/limited-use-license-1.0 + * BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + * OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. */ + package com.snowplowanalytics.snowplow.micro import org.joda.time.DateTime