1
- import de .heikoseeberger .sbtheader .HeaderPattern
2
1
import de .heikoseeberger .sbtheader .HeaderPlugin .autoImport ._
2
+ import de .heikoseeberger .sbtheader .License ._
3
3
import sbt .Keys ._
4
4
import sbt ._
5
5
import sbtorgpolicies ._
@@ -12,6 +12,19 @@ object ProjectPlugin extends AutoPlugin {
12
12
13
13
override def requires : Plugins = plugins.JvmPlugin && OrgPoliciesPlugin
14
14
15
+ object autoImport {
16
+
17
+ lazy val V = new {
18
+ val scala212 : String = " 2.12.10"
19
+ val shapeless : String = " 2.3.3"
20
+ val scalatest : String = " 3.0.8"
21
+ val scalacheck : String = " 1.14.2"
22
+ val scalacheckShapeless : String = " 1.2.3"
23
+ }
24
+ }
25
+
26
+ import autoImport ._
27
+
15
28
override def projectSettings : Seq [Def .Setting [_]] =
16
29
Seq (
17
30
description := " Scala Exercises: The path to enlightenment" ,
@@ -25,23 +38,17 @@ object ProjectPlugin extends AutoPlugin {
25
38
organizationEmail
= " [email protected] "
26
39
),
27
40
orgLicenseSetting := ApacheLicense ,
28
- scalaVersion := " 2.11.11 " ,
41
+ scalaVersion := V .scala212 ,
29
42
scalaOrganization := " org.scala-lang" ,
30
- crossScalaVersions := Seq (" 2.11.11" ),
31
43
resolvers ++= Seq (
32
44
Resolver .mavenLocal,
33
45
Resolver .sonatypeRepo(" snapshots" ),
34
46
Resolver .sonatypeRepo(" releases" )
35
47
),
36
48
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
- )
49
+ headerLicense := Some (Custom (s """ | scala-exercises - ${name.value}
50
+ | Copyright (C) 2015-2019 47 Degrees, LLC. <http://www.47deg.com>
51
+ |
52
+ | """ .stripMargin))
46
53
)
47
54
}
0 commit comments