diff --git a/README.md b/README.md index 59c1542..f3295e7 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,15 @@ ## Installation +[comment]: # (Start Replace) Add the following line to `project/plugins.sbt`: ```scala addSbtPlugin("com.47deg" % "sbt-org-policies" % "0.4.4") ``` +[comment]: # (End Replace) + [comment]: # (Start Copyright) # Copyright diff --git a/core/src/main/scala/sbtorgpolicies/libraries.scala b/core/src/main/scala/sbtorgpolicies/libraries.scala index 5c628da..1273cdc 100644 --- a/core/src/main/scala/sbtorgpolicies/libraries.scala +++ b/core/src/main/scala/sbtorgpolicies/libraries.scala @@ -32,7 +32,7 @@ object libraries { "akka-http" -> "10.0.5", "algebra" -> "0.7.0", "alleycats" -> "0.1.9", - "aws-sdk" -> "1.11.120", + "aws-sdk" -> "1.11.121", "base64" -> "0.2.3", "catalysts" -> "0.0.5", "catbird" -> "0.13.0", @@ -73,7 +73,7 @@ object libraries { "scalacheck" -> "1.13.5", "scheckShapeless" -> "1.1.5", "scalaj" -> "2.3.0", - "scalatest" -> "3.0.2", + "scalatest" -> "3.0.3", "scalaz" -> "7.2.11", "scalazspecs2" -> "0.5.0", "scanamo" -> "0.9.2", diff --git a/core/src/main/scala/sbtorgpolicies/model.scala b/core/src/main/scala/sbtorgpolicies/model.scala index 80af095..1eeaa19 100644 --- a/core/src/main/scala/sbtorgpolicies/model.scala +++ b/core/src/main/scala/sbtorgpolicies/model.scala @@ -18,7 +18,7 @@ package sbtorgpolicies import net.jcazevedo.moultingyaml._ import sbt.Append.Value -import sbt.{url, Append, TaskKey, URL} +import sbt.{url, Append, URL} object model { @@ -119,25 +119,11 @@ object model { } - case class RunnableCITask( - task: TaskKey[Unit], - allModulesScope: Boolean = false, - crossScalaVersionsScope: Boolean = false) - - implicit class AfterSuccessTaskOps(taskKey: TaskKey[Unit]) { - - def toOrgTask: RunnableCITask = toOrgTask(allModulesScope = false, crossScalaVersionsScope = false) - - def toOrgTask(allModulesScope: Boolean, crossScalaVersionsScope: Boolean): RunnableCITask = - RunnableCITask(taskKey, allModulesScope, crossScalaVersionsScope) - - } - object scalac { val `2.10`: String = "2.10.6" - val `2.11`: String = "2.11.8" - val `2.12`: String = "2.12.1" + val `2.11`: String = "2.11.11" + val `2.12`: String = "2.12.2" val latestScalaVersion: String = `2.12` diff --git a/core/src/main/scala/sbtorgpolicies/runnable/model.scala b/core/src/main/scala/sbtorgpolicies/runnable/model.scala new file mode 100644 index 0000000..af83353 --- /dev/null +++ b/core/src/main/scala/sbtorgpolicies/runnable/model.scala @@ -0,0 +1,34 @@ +/* + * Copyright 2017 47 Degrees, LLC. + * + * 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. + */ + +package sbtorgpolicies.runnable + +import sbt._ + +case class RunnableItemConfigScope[T]( + item: RunnableItem[T], + allModulesScope: Boolean = false, + crossScalaVersionsScope: Boolean = false) + +case class SetSetting[T](setting: SettingKey[T], value: T) + +sealed trait RunnableItem[T] + +case class RunnableTask[T](task: TaskKey[T]) extends RunnableItem[T] + +case class RunnableSetSetting[T](setSetting: SetSetting[T]) extends RunnableItem[T] + +case class RunnableProcess(process: String) extends RunnableItem[Unit] diff --git a/core/src/main/scala/sbtorgpolicies/runnable/syntax.scala b/core/src/main/scala/sbtorgpolicies/runnable/syntax.scala new file mode 100644 index 0000000..06f74e6 --- /dev/null +++ b/core/src/main/scala/sbtorgpolicies/runnable/syntax.scala @@ -0,0 +1,61 @@ +/* + * Copyright 2017 47 Degrees, LLC. + * + * 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. + */ + +package sbtorgpolicies.runnable + +import sbt.TaskKey + +import scala.language.implicitConversions + +object syntax { + + implicit def runnableTaskOpsSyntax[T](taskKey: TaskKey[T]): RunnableTaskOps[T] = + new RunnableTaskOps[T](taskKey) + + implicit def runnableSetSettingOpsSyntax[T](setSetting: SetSetting[T]): RunnableSetSettingOps[T] = + new RunnableSetSettingOps[T](setSetting) + + final class RunnableTaskOps[T](taskKey: TaskKey[T]) { + + def asRunnableItem: RunnableItemConfigScope[T] = + asRunnableItem(allModulesScope = false, crossScalaVersionsScope = false) + + def asRunnableItem(allModulesScope: Boolean, crossScalaVersionsScope: Boolean): RunnableItemConfigScope[T] = + RunnableItemConfigScope(RunnableTask(taskKey), allModulesScope, crossScalaVersionsScope) + + } + + final class RunnableSetSettingOps[T](setSetting: SetSetting[T]) { + + def asRunnableItem: RunnableItemConfigScope[T] = + asRunnableItem(allModulesScope = false, crossScalaVersionsScope = false) + + def asRunnableItem(allModulesScope: Boolean, crossScalaVersionsScope: Boolean): RunnableItemConfigScope[T] = + RunnableItemConfigScope(RunnableSetSetting(setSetting), allModulesScope, crossScalaVersionsScope) + + } + + final class RunnableCommandOps(command: String) { + + def asRunnableItem: RunnableItemConfigScope[Unit] = + asRunnableItem(allModulesScope = false, crossScalaVersionsScope = false) + + def asRunnableItem(allModulesScope: Boolean, crossScalaVersionsScope: Boolean): RunnableItemConfigScope[Unit] = + RunnableItemConfigScope(RunnableProcess(command), allModulesScope, crossScalaVersionsScope) + + } + +} diff --git a/project/ProjectPlugin.scala b/project/ProjectPlugin.scala index c3d6ac7..928ac9c 100644 --- a/project/ProjectPlugin.scala +++ b/project/ProjectPlugin.scala @@ -30,7 +30,7 @@ object ProjectPlugin extends AutoPlugin { addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0"), addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.15"), addSbtPlugin("de.heikoseeberger" % "sbt-header" % "1.8.0"), - addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.6.1"), + addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.7.0"), addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "0.6.8"), addSbtPlugin("com.47deg" % "sbt-dependencies" % "0.1.0"), addSbtPlugin("com.47deg" % "sbt-microsites" % "0.5.3") diff --git a/project/plugins.sbt b/project/plugins.sbt index f9316a1..27ec6d0 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,2 +1,2 @@ -addSbtPlugin("com.47deg" % "sbt-org-policies" % "0.4.10") +addSbtPlugin("com.47deg" % "sbt-org-policies" % "0.4.12") libraryDependencies += "org.scala-sbt" % "scripted-plugin" % sbtVersion.value diff --git a/src/main/scala/sbtorgpolicies/OrgPoliciesKeys.scala b/src/main/scala/sbtorgpolicies/OrgPoliciesKeys.scala index c6e2784..9be5af4 100644 --- a/src/main/scala/sbtorgpolicies/OrgPoliciesKeys.scala +++ b/src/main/scala/sbtorgpolicies/OrgPoliciesKeys.scala @@ -19,6 +19,7 @@ package sbtorgpolicies import sbt._ import sbtorgpolicies.github.GitHubOps import sbtorgpolicies.model._ +import sbtorgpolicies.runnable._ import sbtorgpolicies.rules.Validation import sbtorgpolicies.templates.FileType import sbtorgpolicies.templates.badges.BadgeBuilder @@ -35,8 +36,8 @@ sealed trait OrgPoliciesSettingsKeys { settingKey[Boolean]( "Defines the condition that the orgAfterCISuccess command will check before running the orgAfterCISuccessTaskListSetting list.") - val orgAfterCISuccessTaskListSetting: SettingKey[List[RunnableCITask]] = - settingKey[List[RunnableCITask]]( + val orgAfterCISuccessTaskListSetting: SettingKey[List[RunnableItemConfigScope[_]]] = + settingKey[List[RunnableItemConfigScope[_]]]( "Defines the list of tasks that should be executed once the Continuous integration build has finished successfully.") val orgBadgeListSetting: SettingKey[List[BadgeBuilder]] = @@ -73,8 +74,8 @@ sealed trait OrgPoliciesSettingsKeys { val orgProjectName: SettingKey[String] = settingKey[String]("Name that will be used in docs. By default, the module name will be used.") - val orgScriptTaskListSetting: SettingKey[List[RunnableCITask]] = - settingKey[List[RunnableCITask]]( + val orgScriptTaskListSetting: SettingKey[List[RunnableItemConfigScope[_]]] = + settingKey[List[RunnableItemConfigScope[_]]]( "Defines the list of tasks that should be executed to figure out whether the build is correct. " + "By default, it'd be something like this: 'sbt clean coverage compile test coverageReport'") diff --git a/src/main/scala/sbtorgpolicies/settings/AllSettings.scala b/src/main/scala/sbtorgpolicies/settings/AllSettings.scala index ebf9de0..47ec9d8 100644 --- a/src/main/scala/sbtorgpolicies/settings/AllSettings.scala +++ b/src/main/scala/sbtorgpolicies/settings/AllSettings.scala @@ -160,7 +160,7 @@ trait AllSettings homepage := Option(orgGithubSetting.value.homePage), organizationHomepage := Option(orgGithubSetting.value.organizationHomePage), startYear := Some(currentYear), - scalaOrganization := "org.typelevel", + scalaOrganization := "org.scala-lang", scalaVersion := scalac.`2.12`, crossScalaVersions := scalac.crossScalaVersions, scalacOptions ++= scalacAllOptions diff --git a/src/main/scala/sbtorgpolicies/settings/DefaultSettings.scala b/src/main/scala/sbtorgpolicies/settings/DefaultSettings.scala index fa8f28c..0d6e028 100644 --- a/src/main/scala/sbtorgpolicies/settings/DefaultSettings.scala +++ b/src/main/scala/sbtorgpolicies/settings/DefaultSettings.scala @@ -21,11 +21,14 @@ import de.heikoseeberger.sbtheader.HeaderKey.headers import de.heikoseeberger.sbtheader.license.Apache2_0 import dependencies.DependenciesPlugin.autoImport._ import scoverage.ScoverageKeys +import scoverage.ScoverageKeys.coverageEnabled import sbt.Keys._ import sbt._ import sbtorgpolicies.github.GitHubOps import sbtorgpolicies.model._ +import sbtorgpolicies.runnable.syntax._ import sbtorgpolicies.OrgPoliciesKeys._ +import sbtorgpolicies.runnable.SetSetting import sbtorgpolicies.templates._ import sbtorgpolicies.templates.badges._ @@ -83,7 +86,7 @@ trait DefaultSettings extends AllSettings { LicenseBadge.apply(_), GitterBadge.apply(_), GitHubIssuesBadge.apply(_) - ) ++ guard(sbtPlugin.value)(ScalaLangBadge.apply(_)), + ) ++ guard(!sbtPlugin.value)(ScalaLangBadge.apply(_)), orgEnforcedFilesSetting := List( LicenseFileType(orgGithubSetting.value, orgLicenseSetting.value, startYear.value), ContributingFileType(orgProjectName.value, orgGithubSetting.value), @@ -115,17 +118,19 @@ trait DefaultSettings extends AllSettings { getEnvVarOrElse("TRAVIS_PULL_REQUEST") == "false" }, orgAfterCISuccessTaskListSetting := List( - orgCreateFiles.toOrgTask, - orgUpdateDocFiles.toOrgTask, - depUpdateDependencyIssues.toOrgTask, - orgPublishReleaseTask.toOrgTask(allModulesScope = true, crossScalaVersionsScope = true) + orgCreateFiles.asRunnableItem, + orgUpdateDocFiles.asRunnableItem, + depUpdateDependencyIssues.asRunnableItem, + orgPublishReleaseTask.asRunnableItem(allModulesScope = true, crossScalaVersionsScope = true) ), orgScriptTaskListSetting := List( - orgValidateFiles.toOrgTask, - orgCheckSettings.toOrgTask, - (orgCompile in ThisBuild).toOrgTask(allModulesScope = true, crossScalaVersionsScope = true), - (test in Test).toOrgTask(allModulesScope = true, crossScalaVersionsScope = true), - ScoverageKeys.coverageReport.toOrgTask + orgValidateFiles.asRunnableItem, + orgCheckSettings.asRunnableItem, + (clean in Global).asRunnableItem(allModulesScope = true, crossScalaVersionsScope = true), + SetSetting(coverageEnabled in Global, true).asRunnableItem, + (compile in Compile).asRunnableItem(allModulesScope = true, crossScalaVersionsScope = true), + (test in Test).asRunnableItem(allModulesScope = true, crossScalaVersionsScope = true), + (ScoverageKeys.coverageReport in Test).asRunnableItem(allModulesScope = true, crossScalaVersionsScope = true) ) ) } diff --git a/src/main/scala/sbtorgpolicies/settings/bash.scala b/src/main/scala/sbtorgpolicies/settings/bash.scala index 9a9dbc3..bad2a82 100644 --- a/src/main/scala/sbtorgpolicies/settings/bash.scala +++ b/src/main/scala/sbtorgpolicies/settings/bash.scala @@ -21,10 +21,10 @@ import sbt.Keys._ import sbt._ import sbt.complete.DefaultParsers.OptNotSpace import sbtorgpolicies.OrgPoliciesKeys._ -import sbtorgpolicies.model.{Dev, RunnableCITask} +import sbtorgpolicies.model.Dev +import sbtorgpolicies.runnable._ import sbtorgpolicies.utils._ import sbtrelease.ReleaseStateTransformations.reapply -import scoverage.ScoverageKeys trait bash { @@ -66,9 +66,9 @@ trait bash { case (false, true) => st.log.info("Release Version detected, starting the release process...") - s"git checkout $orgBranch" :: - "git reset --hard HEAD" :: + "git reset --hard HEAD" :: "git clean -f" :: + s"git checkout $orgBranch" :: "git pull origin master" :: "release" :: st @@ -116,7 +116,7 @@ trait bash { private[this] def runTaskListCommand( commandName: String, - taskListSettingKey: SettingKey[List[RunnableCITask]], + runnableItemListSettingKey: SettingKey[List[RunnableItemConfigScope[_]]], st: State, stateToState: (State) => State = st => st): State = { @@ -130,46 +130,64 @@ trait bash { val isLastScalaV = crossV.lastOption.exists(_ == scalaV) val isRootModule = baseDir.getAbsolutePath == rootDir.getAbsolutePath - val taskList = extracted.get(taskListSettingKey) + val runnableItemList: List[RunnableItemConfigScope[_]] = + extracted + .get(runnableItemListSettingKey) + .filter { runnableItem => + (isLastScalaV || runnableItem.crossScalaVersionsScope) && (isRootModule || runnableItem.allModulesScope) + } - val executableTasks = taskList.filter { tsk => - (isLastScalaV || tsk.crossScalaVersionsScope) && - (isRootModule || tsk.allModulesScope) - } map (_.task) - - if (executableTasks.nonEmpty) { + if (runnableItemList.nonEmpty) { val stateToStateResult = stateToState(st) - val newState = - if (executableTasks.exists(_.key == ScoverageKeys.coverageReport.key)) - extracted - .runTask( - clean, - Project - .extract(stateToStateResult) - .append(Seq(ScoverageKeys.coverageEnabled := true), stateToStateResult)) - ._1 - else - stateToStateResult - - newState.log.info(s"[$commandName] Initiating with this set of tasks: ${toStringListTask(executableTasks)}") - - executableTasks.foldLeft(newState) { (st, task) => - Project.extract(st).runTask(task, st)._1 + stateToStateResult.log.info( + s"[$commandName] Initiating with this set of items: ${toStringListRunnableItems(runnableItemList)}") + + runnableItemList.foldLeft(stateToStateResult) { (currentState, item) => + val extractedRunnable: Extracted = Project.extract(currentState) + + item match { + case RunnableItemConfigScope(RunnableTask(task), true, _) => + val ref: Reference = extractedRunnable.get(thisProjectRef) + extractedRunnable.runAggregated(task in ref, currentState) + + case RunnableItemConfigScope(RunnableTask(task), _, _) => + extractedRunnable.runTask(task, currentState)._1 + + case RunnableItemConfigScope(RunnableSetSetting(setSetting), _, _) => + reapply(Seq[Setting[_]](setSetting.setting := setSetting.value), currentState) + + case RunnableItemConfigScope(RunnableProcess(process), _, _) => + process.! + currentState + } } } else { - st.log.info(s"[$commandName] No tasks to execute") + st.log.info(s"[$commandName] No runnable items to execute") st } } - private[this] def toStringListTask[T](taskList: List[TaskKey[T]]): String = + private[this] def toStringListRunnableItems(list: List[RunnableItemConfigScope[_]]): String = s""" - |${taskList.map(toStringTask).mkString("\n")} + |${list.map(toStringRunnableItem).mkString("\n")} | |""".stripMargin - private[this] def toStringTask[T](task: TaskKey[T]): String = - s"* ${task.key.label}${task.key.description map (d => s": $d") getOrElse ""}" + private[this] def toStringRunnableItem(runnableItem: RunnableItemConfigScope[_]): String = { + val (label: String, description: Option[String]) = runnableItem match { + + case RunnableItemConfigScope(RunnableTask(task), _, _) => + (task.key.label, task.key.description) + + case RunnableItemConfigScope(RunnableSetSetting(setSetting), _, _) => + (s"Setting ${setSetting.setting.key.label} to ${setSetting.value}", setSetting.setting.key.description) + + case RunnableItemConfigScope(RunnableProcess(process), _, _) => + (s"Running process $process", None) + } + + s"* $label${description map (d => s": $d") getOrElse ""}" + } } diff --git a/src/main/scala/sbtorgpolicies/settings/files.scala b/src/main/scala/sbtorgpolicies/settings/files.scala index 100e055..5ec34bb 100644 --- a/src/main/scala/sbtorgpolicies/settings/files.scala +++ b/src/main/scala/sbtorgpolicies/settings/files.scala @@ -47,6 +47,7 @@ trait files { fileTypes = orgEnforcedFilesSetting.value, log = streams.value.log ) + (): Unit } }.value, orgUpdateDocFiles := Def.task { diff --git a/src/sbt-test/sbtorgpolicies/basic/build.sbt b/src/sbt-test/sbtorgpolicies/basic/build.sbt index d87e6fc..c4ba2d6 100644 --- a/src/sbt-test/sbtorgpolicies/basic/build.sbt +++ b/src/sbt-test/sbtorgpolicies/basic/build.sbt @@ -1,6 +1,6 @@ version := "1.0" -scalaVersion := "2.11.8" +scalaVersion := sbtorgpolicies.model.scalac.`2.11` lazy val testCheckSettings = TaskKey[Unit]("testCheckSettings") diff --git a/src/sbt-test/sbtorgpolicies/basic/test b/src/sbt-test/sbtorgpolicies/basic/test index b6766bb..bbcc995 100644 --- a/src/sbt-test/sbtorgpolicies/basic/test +++ b/src/sbt-test/sbtorgpolicies/basic/test @@ -24,17 +24,17 @@ $ exists .travis.yml > testCheckSettings -> set scalaVersion:="2.12.1" +> set scalaVersion:=sbtorgpolicies.model.scalac.`2.12` -> set crossScalaVersions:=Seq("2.11.8") +> set crossScalaVersions:=Seq(sbtorgpolicies.model.scalac.`2.11`) > testCheckSettings -> set crossScalaVersions:=Seq("2.11.8","2.12.1") +> set crossScalaVersions:=Seq(sbtorgpolicies.model.scalac.`2.11`,sbtorgpolicies.model.scalac.`2.12`) > orgCheckSettings -> set crossScalaVersions:=Seq("2.10.6","2.11.8","2.12.1") +> set crossScalaVersions:=Seq("2.10.6",sbtorgpolicies.model.scalac.`2.11`,sbtorgpolicies.model.scalac.`2.12`) > orgCheckSettings diff --git a/src/sbt-test/sbtorgpolicies/ci-after-succes-cmd/build.sbt b/src/sbt-test/sbtorgpolicies/ci-after-succes-cmd/build.sbt index f47a817..f001e1f 100644 --- a/src/sbt-test/sbtorgpolicies/ci-after-succes-cmd/build.sbt +++ b/src/sbt-test/sbtorgpolicies/ci-after-succes-cmd/build.sbt @@ -1,13 +1,13 @@ -import sbtorgpolicies.model._ +import sbtorgpolicies.runnable.syntax._ name := "sbt-org-policies" version := "1.0" -scalaVersion := "2.12.1" +scalaVersion := sbtorgpolicies.model.scalac.`2.12` orgGithubTokenSetting := "GITHUB_TOKEN_REPO" orgAfterCISuccessCheckSetting := true -orgAfterCISuccessTaskListSetting := List(orgCreateFiles.toOrgTask) +orgAfterCISuccessTaskListSetting := List(orgCreateFiles.asRunnableItem) diff --git a/src/sbt-test/sbtorgpolicies/ci-script/build.sbt b/src/sbt-test/sbtorgpolicies/ci-script/build.sbt index ab022dd..08bb9de 100644 --- a/src/sbt-test/sbtorgpolicies/ci-script/build.sbt +++ b/src/sbt-test/sbtorgpolicies/ci-script/build.sbt @@ -1,5 +1,5 @@ name := "sbt-org-policies" -scalaVersion := "2.12.1" +scalaVersion := sbtorgpolicies.model.scalac.`2.12` libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test" diff --git a/src/sbt-test/sbtorgpolicies/custom-template-config/build.sbt b/src/sbt-test/sbtorgpolicies/custom-template-config/build.sbt index 6e08340..81af903 100644 --- a/src/sbt-test/sbtorgpolicies/custom-template-config/build.sbt +++ b/src/sbt-test/sbtorgpolicies/custom-template-config/build.sbt @@ -2,7 +2,7 @@ import sbtorgpolicies.model._ version := "1.0" -scalaVersion := "2.11.8" +scalaVersion := sbtorgpolicies.model.scalac.`2.11` orgGithubSetting := GitHubSettings( organization = "myorg", diff --git a/src/sbt-test/sbtorgpolicies/custom-template/build.sbt b/src/sbt-test/sbtorgpolicies/custom-template/build.sbt index f1e123e..1d1de8d 100644 --- a/src/sbt-test/sbtorgpolicies/custom-template/build.sbt +++ b/src/sbt-test/sbtorgpolicies/custom-template/build.sbt @@ -1,6 +1,6 @@ version := "1.0" -scalaVersion := "2.11.8" +scalaVersion := sbtorgpolicies.model.scalac.`2.11` def getLines(fileName: String) = IO.readLines(file(fileName)) diff --git a/src/sbt-test/sbtorgpolicies/latest-scala-version/build.sbt b/src/sbt-test/sbtorgpolicies/latest-scala-version/build.sbt index 7d9e486..16b0340 100644 --- a/src/sbt-test/sbtorgpolicies/latest-scala-version/build.sbt +++ b/src/sbt-test/sbtorgpolicies/latest-scala-version/build.sbt @@ -1,6 +1,6 @@ version := "1.0" -scalaVersion := "2.12.1" +scalaVersion := sbtorgpolicies.model.scalac.`2.12` lazy val testCheckSettings = TaskKey[Unit]("testCheckSettings") diff --git a/src/sbt-test/sbtorgpolicies/update-doc-files/build.sbt b/src/sbt-test/sbtorgpolicies/update-doc-files/build.sbt index a17cd21..e1616d4 100644 --- a/src/sbt-test/sbtorgpolicies/update-doc-files/build.sbt +++ b/src/sbt-test/sbtorgpolicies/update-doc-files/build.sbt @@ -1,4 +1,4 @@ -scalaVersion := "2.12.1" +scalaVersion := sbtorgpolicies.model.scalac.`2.12` version := "2.0.0" @@ -20,7 +20,7 @@ def checkFiles(version: String, list: List[File]): Boolean = { } } -lazy val testCheckSettings = TaskKey[Unit]("testCheckSettings") +lazy val testCheckSettings = TaskKey[Unit]("testCheckSettings") lazy val testCheckSettings2 = TaskKey[Unit]("testCheckSettings2") testCheckSettings := Def.task { @@ -37,4 +37,4 @@ testCheckSettings2 := Def.task { } else { sys.error("Error validating other docs files") } -}.value \ No newline at end of file +}.value diff --git a/src/sbt-test/sbtorgpolicies/valid-files/.travis.yml b/src/sbt-test/sbtorgpolicies/valid-files/.travis.yml index 1601674..b6573b6 100644 --- a/src/sbt-test/sbtorgpolicies/valid-files/.travis.yml +++ b/src/sbt-test/sbtorgpolicies/valid-files/.travis.yml @@ -1,8 +1,8 @@ language: scala scala: -- 2.11.8 -- 2.12.1 +- 2.11.11 +- 2.12.2 jdk: - oraclejdk8 diff --git a/src/sbt-test/sbtorgpolicies/valid-files/build.sbt b/src/sbt-test/sbtorgpolicies/valid-files/build.sbt index f758cd5..58231de 100644 --- a/src/sbt-test/sbtorgpolicies/valid-files/build.sbt +++ b/src/sbt-test/sbtorgpolicies/valid-files/build.sbt @@ -1,4 +1,4 @@ -scalaVersion := "2.11.8" +scalaVersion := sbtorgpolicies.model.scalac.`2.11` name := "sbt-org-policies-test" diff --git a/version.sbt b/version.sbt index b312810..584d02f 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -version in ThisBuild := "0.4.13-SNAPSHOT" \ No newline at end of file +version in ThisBuild := "0.4.13"