Skip to content

Commit

Permalink
Merge pull request #224 from ihostage/copyright
Browse files Browse the repository at this point in the history
Change copyright
  • Loading branch information
mkurz authored Nov 6, 2023
2 parents 004a8bb + 18c6279 commit cb6ae65
Show file tree
Hide file tree
Showing 19 changed files with 92 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!--- Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com> -->

# play-doc

[![Twitter Follow](https://img.shields.io/twitter/follow/playframework?label=follow&style=flat&logo=twitter&color=brightgreen)](https://twitter.com/playframework)
Expand Down
27 changes: 25 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>

import de.heikoseeberger.sbtheader.HeaderPlugin.autoImport.HeaderPattern.commentBetween
import de.heikoseeberger.sbtheader.CommentStyle
import de.heikoseeberger.sbtheader.FileType
import de.heikoseeberger.sbtheader.LineCommentCreator
// Customise sbt-dynver's behaviour to make it work with tags which aren't v-prefixed
(ThisBuild / dynverVTagPrefix) := false

Expand All @@ -9,7 +15,7 @@ Global / onLoad := (Global / onLoad).value.andThen { s =>
}

lazy val `play-doc` = (project in file("."))
.enablePlugins(Omnidoc, SbtTwirl)
.enablePlugins(Omnidoc, SbtTwirl, HeaderPlugin)
.settings(
organization := "org.playframework",
organizationName := "The Play Framework Project",
Expand All @@ -23,7 +29,23 @@ lazy val `play-doc` = (project in file("."))
"[email protected]",
url("https://github.com/playframework")
),
pomIncludeRepository := { _ => false },
headerLicense := Some(
HeaderLicense.Custom(
"Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>"
)
),
headerMappings ++= Map(
FileType("sbt") -> HeaderCommentStyle.cppStyleLineComment,
FileType("properties") -> HeaderCommentStyle.hashLineComment,
FileType("md") -> CommentStyle(new LineCommentCreator("<!---", "-->"), commentBetween("<!---", "*", "-->"))
),
(Compile / headerSources) ++=
((baseDirectory.value ** ("*.properties" || "*.md" || "*.sbt"))
--- (baseDirectory.value ** "target" ** "*")
--- (baseDirectory.value / "src/test/resources" ** "*")).get ++
(baseDirectory.value / "project" ** "*.scala" --- (baseDirectory.value ** "target" ** "*")).get,
(Test / headerResources) := Seq(),
pomIncludeRepository := { _ => false },
scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) =>
Expand Down Expand Up @@ -71,6 +93,7 @@ scalacOptions ++= Seq(
addCommandAlias(
"validateCode",
List(
"headerCheckAll",
"scalafmtSbtCheck",
"scalafmtCheckAll",
).mkString(";")
Expand Down
4 changes: 4 additions & 0 deletions project/Omnidoc.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

import sbt._
import sbt.Keys._
import sbt.Package.ManifestAttributes
Expand Down
2 changes: 2 additions & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>

sbt.version=1.9.7
3 changes: 3 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>

addSbtPlugin("org.playframework.twirl" % "sbt-twirl" % "2.0.1")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.10.0")
4 changes: 4 additions & 0 deletions src/main/java/play/doc/CodeReferenceNode.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc;

import org.pegdown.ast.AbstractNode;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/play/doc/CodeReferenceParser.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc;

import org.parboiled.Rule;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/play/doc/TocNode.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc;

import org.pegdown.ast.AbstractNode;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/play/doc/TocParser.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc;

import org.parboiled.Rule;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/play/doc/VariableNode.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc;

import org.pegdown.ast.AbstractNode;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/play/doc/VariableParser.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc;

import org.parboiled.Rule;
Expand Down
4 changes: 4 additions & 0 deletions src/main/scala/play/doc/FileRepository.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc

import java.io.FileInputStream
Expand Down
4 changes: 4 additions & 0 deletions src/main/scala/play/doc/PageIndex.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc

import org.apache.commons.io.IOUtils
Expand Down
4 changes: 4 additions & 0 deletions src/main/scala/play/doc/PlayDoc.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc

import java.io.InputStream
Expand Down
4 changes: 4 additions & 0 deletions src/main/scala/play/doc/PlayDocTemplates.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc

/**
Expand Down
4 changes: 4 additions & 0 deletions src/main/scala/play/doc/PrettifyVerbatimSerializer.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc

import org.pegdown.Printer
Expand Down
4 changes: 4 additions & 0 deletions src/test/scala/play/doc/FileRepositorySpec.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc

import org.specs2.mutable.Specification
Expand Down
4 changes: 4 additions & 0 deletions src/test/scala/play/doc/PageIndexSpec.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc

import java.io.File
Expand Down
4 changes: 4 additions & 0 deletions src/test/scala/play/doc/PlayDocSpec.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
*/

package play.doc

import org.specs2.mutable._
Expand Down

0 comments on commit cb6ae65

Please sign in to comment.