Skip to content

Commit da2063d

Browse files
ihostagemkurz
authored andcommitted
Add copyright header
1 parent 865c91d commit da2063d

File tree

117 files changed

+460
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+460
-12
lines changed

Highlights24.md

+2

Highlights25.md

+2

Highlights26.md

+2

Highlights27.md

+2

Migration24.md

+2

Migration25.md

+2

Migration26.md

+2

README.md

+2

akka/src/main/scala/anorm/AkkaStream.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import java.sql.Connection

akka/src/test/scala-2.13+/AkkaCompat.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
private[anorm] object AkkaCompat {

akka/src/test/scala-2.13-/AkkaCompat.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
private[anorm] object AkkaCompat {

akka/src/test/scala/anorm/AkkaStreamSpec.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import java.sql.{ Connection, ResultSet }

build.sbt

+19-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
2+
13
import AnormGeneration.{ generateFunctionAdapter => GFA }
24
import Common._
35

@@ -355,7 +357,15 @@ lazy val `anorm-enumeratum` = (project in file("enumeratum"))
355357
lazy val `anorm-parent` = (project in file("."))
356358
.enablePlugins(ScalaUnidocPlugin)
357359
.aggregate(`anorm-tokenizer`, `anorm-core`, `anorm-iteratee`, `anorm-akka`, `anorm-postgres`, `anorm-enumeratum`)
358-
.settings(mimaPreviousArtifacts := Set.empty)
360+
.settings(
361+
mimaPreviousArtifacts := Set.empty,
362+
(Compile / headerSources) ++=
363+
((baseDirectory.value ** ("*.properties" || "*.md" || "*.sbt"))
364+
--- (baseDirectory.value ** "target" ** "*")
365+
--- (baseDirectory.value / ".github" ** "*")
366+
--- (baseDirectory.value / "docs" ** "*")).get ++
367+
(baseDirectory.value / "project" ** "*.scala" --- (baseDirectory.value ** "target" ** "*")).get
368+
)
359369

360370
lazy val docs = project
361371
.in(file("docs"))
@@ -372,7 +382,10 @@ lazy val docs = project
372382
"com.typesafe.play" %% "play-jdbc" % playVer.value % Test,
373383
"com.typesafe.play" %% "play-specs2" % playVer.value % Test,
374384
"com.h2database" % "h2" % "1.4.199"
375-
)
385+
),
386+
(Compile / headerSources) ++=
387+
((baseDirectory.value ** ("*.md" || "*.scala" || "*.xml"))
388+
--- (baseDirectory.value ** "target" ** "*")).get
376389
)
377390
.dependsOn(`anorm-core`)
378391

@@ -383,6 +396,9 @@ addCommandAlias(
383396
List(
384397
"scalafixAll -check",
385398
"scalafmtSbtCheck",
386-
"+scalafmtCheckAll"
399+
"+scalafmtCheckAll",
400+
"+headerCheckAll",
401+
"docs/headerCheckAll",
402+
"docs/scalafmtCheckAll"
387403
).mkString(";")
388404
)

core/src/main/scala-2.12+/anorm/ToStatement.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import java.sql.PreparedStatement

core/src/main/scala-2.12-/anorm/ToStatement.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import java.sql.PreparedStatement

core/src/main/scala-2.13+/Compat.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import java.util.{ Enumeration => JEnum }

core/src/main/scala-2.13-/Compat.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import java.util.{ Enumeration => JEnum }

core/src/main/scala-2/anorm/Macro.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import com.github.ghik.silencer.silent

core/src/main/scala-2/anorm/PackageCompat.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import scala.language.implicitConversions

core/src/main/scala-2/anorm/macros/Implicit.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.reflect.api.Universe

core/src/main/scala-2/anorm/macros/ImplicitResolver.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.reflect.macros.whitebox

core/src/main/scala-2/anorm/macros/Inspect.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.reflect.macros.whitebox

core/src/main/scala-2/anorm/macros/RowParserImpl.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.reflect.macros.whitebox

core/src/main/scala-2/anorm/macros/SealedRowParserImpl.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.reflect.macros.whitebox

core/src/main/scala-2/anorm/macros/ToParameterListImpl.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.reflect.macros.whitebox

core/src/main/scala-2/anorm/macros/ValueColumnImpl.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.reflect.macros.whitebox

core/src/main/scala-2/anorm/macros/ValueToStatementImpl.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.reflect.macros.whitebox

core/src/main/scala-3/anorm/Macro.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import scala.quoted.{ Expr, FromExpr, Quotes, ToExpr, Type }

core/src/main/scala-3/anorm/PackageCompat.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import java.sql.Connection

core/src/main/scala-3/anorm/macros/ImplicitResolver.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.quoted.{ Expr, Quotes, Type }

core/src/main/scala-3/anorm/macros/Inspect.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.quoted.{ Expr, Quotes, Type }

core/src/main/scala-3/anorm/macros/RowParserImpl.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.quoted.{ Expr, Quotes, Type }

core/src/main/scala-3/anorm/macros/SealedRowParserImpl.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.quoted.{ Expr, Quotes, Type }

core/src/main/scala-3/anorm/macros/ToParameterListImpl.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.quoted.{ Expr, Quotes, Type }

core/src/main/scala-3/anorm/macros/ValueColumnImpl.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.quoted.{ Expr, Quotes, Type }

core/src/main/scala-3/anorm/macros/ValueToStatement.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm.macros
26

37
import scala.quoted.{ Expr, Quotes, Type }

core/src/main/scala-3/silent.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package com.github.ghik.silencer
26

37
class silent(s: String = "") extends scala.annotation.StaticAnnotation

core/src/main/scala/anorm/Anorm.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
2-
* Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com>
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
33
*/
4+
45
package anorm
56

67
import java.sql.{ Connection, PreparedStatement, ResultSet }

core/src/main/scala/anorm/BatchSql.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import java.sql.{ Connection, PreparedStatement }

core/src/main/scala/anorm/Column.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
2-
* Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com>
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
33
*/
4+
45
package anorm
56

67
import java.io.{ ByteArrayInputStream, InputStream }

core/src/main/scala/anorm/Cursor.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import java.sql.ResultSet

core/src/main/scala/anorm/MacroOptions.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
private[anorm] trait MacroOptions {

core/src/main/scala/anorm/MetaData.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
/**

core/src/main/scala/anorm/NamedParameter.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
/** Applied named parameter. */

core/src/main/scala/anorm/NotNullGuard.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
2-
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
33
*/
4+
45
package anorm
56

67
/**

core/src/main/scala/anorm/ParameterMetaData.scala

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
3+
*/
4+
15
package anorm
26

37
import java.util.{ Date, UUID => JUUID }

0 commit comments

Comments
 (0)