Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automatic header creation on compilation #531

Merged
merged 2 commits into from Jan 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions build.sbt
Expand Up @@ -176,6 +176,22 @@ lazy val sharedSettings = warnUnusedImport ++ Seq(

licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
homepage := Some(url("https://monix.io")),
headerLicense := Some(HeaderLicense.Custom(
"""|Copyright (c) 2014-2018 by The Monix Project Developers.
|See the project homepage at: https://monix.io
|
|Licensed under the Apache License, Version 2.0 (the "License");
|you may not use this file except in compliance with the License.
|You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
|Unless required by applicable law or agreed to in writing, software
|distributed under the License is distributed on an "AS IS" BASIS,
|WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|See the License for the specific language governing permissions and
|limitations under the License."""
.stripMargin)),

scmInfo := Some(
ScmInfo(
Expand Down Expand Up @@ -268,6 +284,7 @@ def mimaSettings(projectName: String) = Seq(
def profile: Project ⇒ Project = pr => cmdlineProfile match {
case "coverage" => pr
case _ => pr.disablePlugins(scoverage.ScoverageSbtPlugin)
.enablePlugins(AutomateHeaderPlugin)
}

lazy val monix = project.in(file("."))
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2017 by its authors. Some rights reserved.
* Copyright (c) 2014-2018 by The Monix Project Developers.
* See the project homepage at: https://monix.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2016 by its authors. Some rights reserved.
* Copyright (c) 2014-2018 by The Monix Project Developers.
* See the project homepage at: https://monix.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2016 by its authors. Some rights reserved.
* Copyright (c) 2014-2018 by The Monix Project Developers.
* See the project homepage at: https://monix.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Expand Up @@ -6,3 +6,4 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.18")
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "4.1.0")