diff --git a/build.sbt b/build.sbt index 3d46ee7..2faced0 100644 --- a/build.sbt +++ b/build.sbt @@ -35,6 +35,7 @@ ThisBuild / tlSonatypeUseLegacyHost := true ThisBuild / organization := "io.laserdisc" ThisBuild / organizationName := "LaserDisc" ThisBuild / licenses := Seq(License.MIT) +ThisBuild / startYear := Some(2018) ThisBuild / developers := List(tlGitHubDev("barambani", "Filippo Mariotti")) ThisBuild / crossScalaVersions := Seq(scala_212, scala_213, scala_3) ThisBuild / scalaVersion := scala_213 @@ -50,8 +51,13 @@ ThisBuild / libraryDependencies ++= Seq( D.scalatest.value % Test ) +lazy val commonSettings = Seq( + headerEndYear := Some(2024) +) + lazy val root = tlCrossRootProject .aggregate(core, fs2, zio, interop) + .settings(commonSettings) .settings( addCommandAlias("fmt", "scalafmt; Test/scalafmt; scalafmtSbt"), addCommandAlias("checkFormat", "scalafmtCheck; Test/scalafmtCheck; scalafmtSbtCheck"), @@ -61,6 +67,7 @@ lazy val root = tlCrossRootProject lazy val core = crossProject(JVMPlatform, JSPlatform) .crossType(CrossType.Pure) .in(file("core")) + .settings(commonSettings) .settings( name := "log-effect-core", libraryDependencies ++= Seq(D.log4s.value, D.scribe.value) @@ -70,6 +77,7 @@ lazy val fs2 = crossProject(JVMPlatform, JSPlatform) .crossType(CrossType.Pure) .in(file("fs2")) .dependsOn(core) + .settings(commonSettings) .settings( name := "log-effect-fs2", libraryDependencies ++= Seq( @@ -85,6 +93,7 @@ lazy val zio = crossProject(JVMPlatform, JSPlatform) .crossType(CrossType.Pure) .in(file("zio")) .dependsOn(core) + .settings(commonSettings) .settings( name := "log-effect-zio", libraryDependencies ++= Seq( @@ -99,6 +108,7 @@ lazy val interop = crossProject(JVMPlatform, JSPlatform) .crossType(CrossType.Pure) .in(file("interop")) .dependsOn(core, fs2) + .settings(commonSettings) .settings( name := "log-effect-interop", libraryDependencies ++= Seq( diff --git a/core/src/main/scala/log/effect/Failure.scala b/core/src/main/scala/log/effect/Failure.scala index f429b2c..68ae13d 100644 --- a/core/src/main/scala/log/effect/Failure.scala +++ b/core/src/main/scala/log/effect/Failure.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/core/src/main/scala/log/effect/LogLevel.scala b/core/src/main/scala/log/effect/LogLevel.scala index c1c4a19..fdeab94 100644 --- a/core/src/main/scala/log/effect/LogLevel.scala +++ b/core/src/main/scala/log/effect/LogLevel.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/core/src/main/scala/log/effect/LogWriter.scala b/core/src/main/scala/log/effect/LogWriter.scala index 8dbcc7f..d321d32 100644 --- a/core/src/main/scala/log/effect/LogWriter.scala +++ b/core/src/main/scala/log/effect/LogWriter.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/core/src/main/scala/log/effect/LogWriterConstructor.scala b/core/src/main/scala/log/effect/LogWriterConstructor.scala index ae5745f..13446e8 100644 --- a/core/src/main/scala/log/effect/LogWriterConstructor.scala +++ b/core/src/main/scala/log/effect/LogWriterConstructor.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/core/src/main/scala/log/effect/internal/EffectSuspension.scala b/core/src/main/scala/log/effect/internal/EffectSuspension.scala index 8bdb02b..7a8cb5b 100644 --- a/core/src/main/scala/log/effect/internal/EffectSuspension.scala +++ b/core/src/main/scala/log/effect/internal/EffectSuspension.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/core/src/main/scala/log/effect/internal/Functor.scala b/core/src/main/scala/log/effect/internal/Functor.scala index 8803802..0579265 100644 --- a/core/src/main/scala/log/effect/internal/Functor.scala +++ b/core/src/main/scala/log/effect/internal/Functor.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/core/src/main/scala/log/effect/internal/Show.scala b/core/src/main/scala/log/effect/internal/Show.scala index c81dd78..7037958 100644 --- a/core/src/main/scala/log/effect/internal/Show.scala +++ b/core/src/main/scala/log/effect/internal/Show.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/core/src/main/scala/log/effect/internal/package.scala b/core/src/main/scala/log/effect/internal/package.scala index 592358a..9a798de 100644 --- a/core/src/main/scala/log/effect/internal/package.scala +++ b/core/src/main/scala/log/effect/internal/package.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/core/src/main/scala/log/effect/internal/syntax/FunctorSyntax.scala b/core/src/main/scala/log/effect/internal/syntax/FunctorSyntax.scala index f27b120..e4f02c8 100644 --- a/core/src/main/scala/log/effect/internal/syntax/FunctorSyntax.scala +++ b/core/src/main/scala/log/effect/internal/syntax/FunctorSyntax.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/core/src/main/scala/log/effect/internal/syntax/ShowSyntax.scala b/core/src/main/scala/log/effect/internal/syntax/ShowSyntax.scala index 5568f7c..3b29a86 100644 --- a/core/src/main/scala/log/effect/internal/syntax/ShowSyntax.scala +++ b/core/src/main/scala/log/effect/internal/syntax/ShowSyntax.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/core/src/main/scala/log/effect/internal/syntax/package.scala b/core/src/main/scala/log/effect/internal/syntax/package.scala index 57e97a1..f0eeb3e 100644 --- a/core/src/main/scala/log/effect/internal/syntax/package.scala +++ b/core/src/main/scala/log/effect/internal/syntax/package.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/core/src/test/scala/LogWriterSyntaxResolutionTest.scala b/core/src/test/scala/LogWriterSyntaxResolutionTest.scala index 257bfb1..fbe3742 100644 --- a/core/src/test/scala/LogWriterSyntaxResolutionTest.scala +++ b/core/src/test/scala/LogWriterSyntaxResolutionTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/fs2/src/main/scala/log/effect/fs2/Fs2LogWriter.scala b/fs2/src/main/scala/log/effect/fs2/Fs2LogWriter.scala index 4fdc30e..bf5ec55 100644 --- a/fs2/src/main/scala/log/effect/fs2/Fs2LogWriter.scala +++ b/fs2/src/main/scala/log/effect/fs2/Fs2LogWriter.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/fs2/src/main/scala/log/effect/fs2/LogSelector.scala b/fs2/src/main/scala/log/effect/fs2/LogSelector.scala index 04c9703..8eb2495 100644 --- a/fs2/src/main/scala/log/effect/fs2/LogSelector.scala +++ b/fs2/src/main/scala/log/effect/fs2/LogSelector.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/fs2/src/main/scala/log/effect/fs2/SyncLogWriter.scala b/fs2/src/main/scala/log/effect/fs2/SyncLogWriter.scala index 8e11c07..c82b023 100644 --- a/fs2/src/main/scala/log/effect/fs2/SyncLogWriter.scala +++ b/fs2/src/main/scala/log/effect/fs2/SyncLogWriter.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/fs2/src/main/scala/log/effect/fs2/interop/show.scala b/fs2/src/main/scala/log/effect/fs2/interop/show.scala index 172ae7b..5d69694 100644 --- a/fs2/src/main/scala/log/effect/fs2/interop/show.scala +++ b/fs2/src/main/scala/log/effect/fs2/interop/show.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/fs2/src/main/scala/log/effect/fs2/mtl/readerT.scala b/fs2/src/main/scala/log/effect/fs2/mtl/readerT.scala index 6fd6938..f05404f 100644 --- a/fs2/src/main/scala/log/effect/fs2/mtl/readerT.scala +++ b/fs2/src/main/scala/log/effect/fs2/mtl/readerT.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/fs2/src/main/scala/log/effect/fs2/syntax/Fs2LogEffectSyntax.scala b/fs2/src/main/scala/log/effect/fs2/syntax/Fs2LogEffectSyntax.scala index 8cba0d9..634e9f1 100644 --- a/fs2/src/main/scala/log/effect/fs2/syntax/Fs2LogEffectSyntax.scala +++ b/fs2/src/main/scala/log/effect/fs2/syntax/Fs2LogEffectSyntax.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/fs2/src/main/scala/log/effect/fs2/syntax/package.scala b/fs2/src/main/scala/log/effect/fs2/syntax/package.scala index 11b7f2a..6b608db 100644 --- a/fs2/src/main/scala/log/effect/fs2/syntax/package.scala +++ b/fs2/src/main/scala/log/effect/fs2/syntax/package.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/fs2/src/test/scala/LogSelectorTest.scala b/fs2/src/test/scala/LogSelectorTest.scala index 8e6b196..6baaf86 100644 --- a/fs2/src/test/scala/LogSelectorTest.scala +++ b/fs2/src/test/scala/LogSelectorTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/fs2/src/test/scala/LogWriterResolutionTest.scala b/fs2/src/test/scala/LogWriterResolutionTest.scala index 2a4a7a8..8d48afb 100644 --- a/fs2/src/test/scala/LogWriterResolutionTest.scala +++ b/fs2/src/test/scala/LogWriterResolutionTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/fs2/src/test/scala/ReadmeConstructionCodeSnippetsTest.scala b/fs2/src/test/scala/ReadmeConstructionCodeSnippetsTest.scala index 720b9b2..9f4300a 100644 --- a/fs2/src/test/scala/ReadmeConstructionCodeSnippetsTest.scala +++ b/fs2/src/test/scala/ReadmeConstructionCodeSnippetsTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/fs2/src/test/scala/ReadmeLogSubmissionCodeSnippetsTest.scala b/fs2/src/test/scala/ReadmeLogSubmissionCodeSnippetsTest.scala index 9a22e16..fbf4609 100644 --- a/fs2/src/test/scala/ReadmeLogSubmissionCodeSnippetsTest.scala +++ b/fs2/src/test/scala/ReadmeLogSubmissionCodeSnippetsTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/fs2/src/test/scala/log/effect/fs2/TestLogCapture.scala b/fs2/src/test/scala/log/effect/fs2/TestLogCapture.scala index 20738d7..36a7139 100644 --- a/fs2/src/test/scala/log/effect/fs2/TestLogCapture.scala +++ b/fs2/src/test/scala/log/effect/fs2/TestLogCapture.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/interop/src/main/scala/log/effect/interop/Log4catsInterop.scala b/interop/src/main/scala/log/effect/interop/Log4catsInterop.scala index 4395180..2317281 100644 --- a/interop/src/main/scala/log/effect/interop/Log4catsInterop.scala +++ b/interop/src/main/scala/log/effect/interop/Log4catsInterop.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/interop/src/main/scala/log/effect/interop/package.scala b/interop/src/main/scala/log/effect/interop/package.scala index bd4e7b0..f0e82b4 100644 --- a/interop/src/main/scala/log/effect/interop/package.scala +++ b/interop/src/main/scala/log/effect/interop/package.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/interop/src/test/scala/InteropLogSelectorTest.scala b/interop/src/test/scala/InteropLogSelectorTest.scala index 6d9750f..8f98080 100644 --- a/interop/src/test/scala/InteropLogSelectorTest.scala +++ b/interop/src/test/scala/InteropLogSelectorTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/interop/src/test/scala/InteropTest.scala b/interop/src/test/scala/InteropTest.scala index 8cd77ec..ec71d5f 100644 --- a/interop/src/test/scala/InteropTest.scala +++ b/interop/src/test/scala/InteropTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/project/plugins.sbt b/project/plugins.sbt index b28603e..5ba36a6 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,3 @@ addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2") addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0") -addSbtPlugin("org.typelevel" % "sbt-typelevel" % "0.6.7") +addSbtPlugin("org.typelevel" % "sbt-typelevel" % "0.7.0") diff --git a/zio/src/main/scala/log/effect/zio/ZioLogWriter.scala b/zio/src/main/scala/log/effect/zio/ZioLogWriter.scala index 5257176..33c53c5 100644 --- a/zio/src/main/scala/log/effect/zio/ZioLogWriter.scala +++ b/zio/src/main/scala/log/effect/zio/ZioLogWriter.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/zio/src/test/scala/ConsoleLogWriterTest.scala b/zio/src/test/scala/ConsoleLogWriterTest.scala index 94fc967..c1f1cf7 100644 --- a/zio/src/test/scala/ConsoleLogWriterTest.scala +++ b/zio/src/test/scala/ConsoleLogWriterTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/zio/src/test/scala/Log4sLogWriterTest.scala b/zio/src/test/scala/Log4sLogWriterTest.scala index dd04c00..a2cfb26 100644 --- a/zio/src/test/scala/Log4sLogWriterTest.scala +++ b/zio/src/test/scala/Log4sLogWriterTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/zio/src/test/scala/LogWriterResolutionTest.scala b/zio/src/test/scala/LogWriterResolutionTest.scala index 356cefc..052a34a 100644 --- a/zio/src/test/scala/LogWriterResolutionTest.scala +++ b/zio/src/test/scala/LogWriterResolutionTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/zio/src/test/scala/ReadmeLayerConstructionCodeSnippetsTest.scala b/zio/src/test/scala/ReadmeLayerConstructionCodeSnippetsTest.scala index 8bf59d9..861555e 100644 --- a/zio/src/test/scala/ReadmeLayerConstructionCodeSnippetsTest.scala +++ b/zio/src/test/scala/ReadmeLayerConstructionCodeSnippetsTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/zio/src/test/scala/ReadmeRioConstructionCodeSnippetsTest.scala b/zio/src/test/scala/ReadmeRioConstructionCodeSnippetsTest.scala index 3d66d47..78297ae 100644 --- a/zio/src/test/scala/ReadmeRioConstructionCodeSnippetsTest.scala +++ b/zio/src/test/scala/ReadmeRioConstructionCodeSnippetsTest.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in diff --git a/zio/src/test/scala/log/effect/zio/TestLogCapture.scala b/zio/src/test/scala/log/effect/zio/TestLogCapture.scala index 916c628..092d495 100644 --- a/zio/src/test/scala/log/effect/zio/TestLogCapture.scala +++ b/zio/src/test/scala/log/effect/zio/TestLogCapture.scala @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 LaserDisc + * Copyright (c) 2018-2024 LaserDisc * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in