Skip to content

Commit

Permalink
Add, configure & enforce file headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Oct 5, 2017
1 parent dae4694 commit a41727f
Show file tree
Hide file tree
Showing 270 changed files with 1,750 additions and 273 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ matrix:

env:
matrix:
- SBT_CMD=";mimaReportBinaryIssues ;scalafmt::test ;test:scalafmt::test ;sbt:scalafmt::test ;test:compile ;mainSettingsProj/test ;safeUnitTests ;otherUnitTests"
- SBT_CMD=";mimaReportBinaryIssues ;scalafmt::test ;test:scalafmt::test ;sbt:scalafmt::test ;headerCheck ;test:headerCheck ;test:compile ;mainSettingsProj/test ;safeUnitTests ;otherUnitTests"
- SBT_CMD="scripted actions/*"
- SBT_CMD="scripted apiinfo/* compiler-project/* ivy-deps-management/*"
- SBT_CMD="scripted dependency-management/*1of4"
Expand Down
43 changes: 23 additions & 20 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
Copyright (c) 2008-2014 Typesafe Inc, Mark Harrah, Grzegorz Kossakowski, Josh Suereth, Indrajit Raychaudhuri, Eugene Yokota, and other contributors.
Copyright (c) 2011 - 2017, Lightbend, Inc.
Copyright (c) 2008 - 2010, Mark Harrah
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 3 additions & 3 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
sbt
Copyright (c) 2008-2014 Typesafe Inc, Mark Harrah, Grzegorz Kossakowski, Josh Suereth, Indrajit Raychaudhuri, Eugene Yokota, and other contributors.
Licensed under BSD-style license (see LICENSE)
Copyright 2011 - 2017, Lightbend, Inc.
Copyright 2008 - 2010, Mark Harrah
Licensed under BSD-3-Clause license (see LICENSE)

Portions based on code from the Scala compiler. Portions of the Scala
library are distributed with the launcher.
Expand Down Expand Up @@ -33,4 +34,3 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

7 changes: 7 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ def buildLevelSettings: Seq[Setting[_]] =

def commonSettings: Seq[Setting[_]] =
Seq[SettingsDefinition](
headerLicense := Some(HeaderLicense.Custom(
"""|sbt
|Copyright 2011 - 2017, Lightbend, Inc.
|Copyright 2008 - 2010, Mark Harrah
|Licensed under BSD-3-Clause license (see LICENSE)
|""".stripMargin
)),
scalaVersion := baseScalaVersion,
componentID := None,
resolvers += Resolver.typesafeIvyRepo("releases"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util
package appmacro

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util
package appmacro

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util
package appmacro

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util
package appmacro

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util.appmacro

import scala.reflect.macros.blackbox
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util
package appmacro

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util
package appmacro

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util
package appmacro

Expand Down
7 changes: 4 additions & 3 deletions internal/util-collection/NOTICE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Simple Build Tool: Collection Component
Copyright 2010 Mark Harrah
Licensed under BSD-style license (see LICENSE)
sbt: Collection Component
Copyright 2011 - 2017, Lightbend, Inc.
Copyright 2008 - 2010, Mark Harrah
Licensed under BSD-3-Clause license (see LICENSE)
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

import Classes.Applicative
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

import Types._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

object Classes {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 David MacIver, Mark Harrah
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

trait Dag[Node <: Dag[Node]] { self: Node =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

import Types._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt
package internal
package util
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

/** A mutable set interface that uses object identity to test for set membership.*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

import java.lang.Runnable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

import Types._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

import collection.mutable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

// Used to emulate ~> literals
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* sbt -- Simple Build Tool
* Copyright 2011 Mark Harrah
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

import scala.language.existentials
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

object Signals {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

trait TypeFunctions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

object Types extends Types
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* sbt -- Simple Build Tool
* Copyright 2011 Mark Harrah
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.internal.util

import java.util.Locale
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* sbt
* Copyright 2011 - 2017, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under BSD-3-Clause license (see LICENSE)
*/

package sbt.util

import sjsonnew.JsonWriter
Expand Down
Loading

0 comments on commit a41727f

Please sign in to comment.