1- import de .heikoseeberger .sbtheader .HeaderPattern
1+ import de .heikoseeberger .sbtheader .License . _
22import de .heikoseeberger .sbtheader .HeaderPlugin .autoImport ._
33import sbt .Keys ._
44import sbt ._
@@ -12,6 +12,21 @@ object ProjectPlugin extends AutoPlugin {
1212
1313 override def requires : Plugins = plugins.JvmPlugin && OrgPoliciesPlugin
1414
15+ object autoImport {
16+
17+ lazy val V = new {
18+ val scala212 : String = " 2.12.10"
19+ val doobie : String = " 0.8.6"
20+ val cats : String = " 2.0.0"
21+ val shapeless : String = " 2.3.3"
22+ val scalatest : String = " 3.0.8"
23+ val scalacheck : String = " 1.14.2"
24+ val scalacheckShapeless : String = " 1.2.3"
25+ }
26+ }
27+
28+ import autoImport ._
29+
1530 override def projectSettings : Seq [Def .Setting [_]] =
1631 Seq (
1732 description := " Scala Exercises: The path to enlightenment" ,
@@ -25,23 +40,17 @@ object ProjectPlugin extends AutoPlugin {
2540 organizationEmail = " hello@47deg.com"
2641 ),
2742 orgLicenseSetting := ApacheLicense ,
28- scalaVersion := " 2.11.11 " ,
43+ scalaVersion := V .scala212 ,
2944 scalaOrganization := " org.scala-lang" ,
30- crossScalaVersions := Seq (" 2.11.11" ),
3145 resolvers ++= Seq (
3246 Resolver .mavenLocal,
3347 Resolver .sonatypeRepo(" snapshots" ),
3448 Resolver .sonatypeRepo(" releases" )
3549 ),
3650 scalacOptions := sbtorgpolicies.model.scalacCommonOptions,
37- headers := Map (
38- " scala" -> (HeaderPattern .cStyleBlockComment,
39- s """ |/*
40- | * scala-exercises - ${name.value}
41- | * Copyright (C) 2015-2016 47 Degrees, LLC. <http://www.47deg.com>
42- | */
43- |
44- | """ .stripMargin)
45- )
51+ headerLicense := Some (Custom (s """ | scala-exercises - ${name.value}
52+ | Copyright (C) 2015-2019 47 Degrees, LLC. <http://www.47deg.com>
53+ |
54+ | """ .stripMargin))
4655 )
4756}
0 commit comments