1
1
organization := " org.scala-lang.modules"
2
2
3
- name := " scala-partest-interface"
3
+ name := " scala-partest-interface"
4
4
5
- version := " 0.2"
5
+ version := " 0.2"
6
6
7
-
8
- // dependencies:
9
- libraryDependencies += " org.scala-sbt" % " test-interface" % " 1.0"
10
-
11
- // standard stuff follows:
12
- scalaVersion := " 2.11.0-M6"
13
-
14
- // NOTE: not necessarily equal to scalaVersion
15
- // (e.g., during PR validation, we override scalaVersion to validate,
16
- // but don't rebuild scalacheck, so we don't want to rewire that dependency)
17
- scalaBinaryVersion := " 2.11.0-M6"
18
-
19
- // to allow compiling against snapshot versions of Scala
20
- resolvers += Resolver .sonatypeRepo(" snapshots" )
7
+ scalaVersion := " 2.11.0-M7"
21
8
22
9
// don't use for doc scope, scaladoc warnings are not to be reckoned with
23
- scalacOptions in compile ++= Seq (" -optimize" , " -Xfatal-warnings" , " -feature" , " -deprecation" , " -unchecked" , " -Xlint" )
24
-
25
-
26
- // Generate $name.properties to store our version as well as the scala version used to build
27
- resourceGenerators in Compile <+= Def .task {
28
- val props = new java.util.Properties
29
- props.put(" version.number" , version.value)
30
- props.put(" scala.version.number" , scalaVersion.value)
31
- props.put(" scala.binary.version.number" , scalaBinaryVersion.value)
32
- val file = (resourceManaged in Compile ).value / s " ${name.value}.properties "
33
- IO .write(props, null , file)
34
- Seq (file)
35
- }
36
-
37
- mappings in (Compile , packageBin) += {
38
- (baseDirectory.value / s " ${name.value}.properties " ) -> s " ${name.value}.properties "
39
- }
10
+ // "-Xfatal-warnings",
11
+ scalacOptions in compile ++= Seq (" -optimize" , " -feature" , " -deprecation" , " -unchecked" , " -Xlint" )
40
12
41
-
42
- // maven publishing
43
- publishTo := {
44
- val nexus = " https://oss.sonatype.org/"
45
- if (version.value.trim.endsWith(" SNAPSHOT" ))
46
- Some (" snapshots" at nexus + " content/repositories/snapshots" )
47
- else
48
- Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
49
- }
50
-
51
- credentials += Credentials (Path .userHome / " .ivy2" / " .credentials" )
52
-
53
- publishMavenStyle := true
54
-
55
- publishArtifact in Test := false
56
-
57
- pomIncludeRepository := { _ => false }
58
-
59
- pomExtra := (
60
- <url >http:// www.scala- lang.org/</ url>
61
- <inceptionYear >2002 </inceptionYear >
62
- <licenses >
63
- <license >
64
- <distribution >repo</distribution >
65
- <name >BSD 3 - Clause </name >
66
- <url >https:// github.com/ scala/ {name.value}/ blob/ master/ LICENSE .md</url >
67
- </license >
68
- </licenses >
69
- <scm >
70
- <connection >scm: git: git:// github.com/ scala/ {name.value}.git</connection >
71
- <url >https:// github.com/ scala/ {name.value}</url >
72
- </scm >
73
- <issueManagement >
74
- <system >JIRA </system >
75
- <url >https:// issues.scala- lang.org/</ url>
76
- </issueManagement >
77
- <developers >
78
- <developer >
79
- <id >epfl</id >
80
- <name >EPFL </name >
81
- </developer >
82
- <developer >
83
- <id >Typesafe </id >
84
- <name >Typesafe , Inc .</name >
85
- </developer >
86
- </developers >
87
- )
13
+ // dependencies:
14
+ libraryDependencies += " org.scala-sbt" % " test-interface" % " 1.0"
88
15
89
16
90
- // TODO: mima
91
- // import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
92
- // import com.typesafe.tools.mima.plugin.MimaKeys.previousArtifact
93
- // previousArtifact := Some(organization.value %% name.value % binaryReferenceVersion.value)
17
+ // looking for boilerplate? we have it! (in standard.sbt)
0 commit comments