From dfa90b0fdced913296d79702d000d697f181c073 Mon Sep 17 00:00:00 2001 From: Oleg Pyzhcov Date: Mon, 15 Jan 2018 18:19:48 +0300 Subject: [PATCH] add automatic header creation on compilation --- build.sbt | 17 +++++++++++++++++ .../execution/internal/forkJoin/package.scala | 2 +- .../monix/execution/misc/compat.scala | 2 +- .../schedulers/ExecuteExtensions.scala | 2 +- project/plugins.sbt | 1 + 5 files changed, 21 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 358c719ed..fb6ddcaed 100644 --- a/build.sbt +++ b/build.sbt @@ -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( @@ -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(".")) diff --git a/monix-execution/jvm/src/main/scala_2.12/monix/execution/internal/forkJoin/package.scala b/monix-execution/jvm/src/main/scala_2.12/monix/execution/internal/forkJoin/package.scala index 715af55d5..c01046a16 100644 --- a/monix-execution/jvm/src/main/scala_2.12/monix/execution/internal/forkJoin/package.scala +++ b/monix-execution/jvm/src/main/scala_2.12/monix/execution/internal/forkJoin/package.scala @@ -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"); diff --git a/monix-execution/shared/src/main/scala_2.12/monix/execution/misc/compat.scala b/monix-execution/shared/src/main/scala_2.12/monix/execution/misc/compat.scala index 88c35cfde..c1ad28d2a 100644 --- a/monix-execution/shared/src/main/scala_2.12/monix/execution/misc/compat.scala +++ b/monix-execution/shared/src/main/scala_2.12/monix/execution/misc/compat.scala @@ -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"); diff --git a/monix-execution/shared/src/main/scala_2.12/monix/execution/schedulers/ExecuteExtensions.scala b/monix-execution/shared/src/main/scala_2.12/monix/execution/schedulers/ExecuteExtensions.scala index 1060b0a51..d2d846a23 100644 --- a/monix-execution/shared/src/main/scala_2.12/monix/execution/schedulers/ExecuteExtensions.scala +++ b/monix-execution/shared/src/main/scala_2.12/monix/execution/schedulers/ExecuteExtensions.scala @@ -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"); diff --git a/project/plugins.sbt b/project/plugins.sbt index cb825dc75..dd649ede7 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -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")