11import VersionKeys ._
22
3+ organization := " org.scala-lang.modules"
34
4- organization := " org. scala-lang.modules "
5+ name := " scala-partest "
56
6- name := " scala-partest "
7+ version := " 1.0.0-SNAPSHOT "
78
8- version := " 1.0 .0-SNAPSHOT "
9+ scalaVersion := " 2.11 .0-M7 "
910
10- scalaVersion := " 2.11 .0-M6 "
11+ scalaXmlVersion := " 1.0 .0-RC7 "
1112
12- snapshotScalaBinaryVersion := " 2 .11.0-M6 "
13+ scalaCheckVersion := " 1 .11.1 "
1314
14- scalaXmlVersion := " 1.0.0-RC6"
15+ // used as binary version when compiling against 2.11.0-SNAPSHOT
16+ snapshotScalaBinaryVersion := " 2.11.0-M7"
1517
16- scalaCheckVersion := " 1.10.1"
17-
18- // DOUBLETHINK YOUR WAY OUT OF EDITING BELOW (THERE IS NO BELOW)
19-
20- scalaBinaryVersion := deriveBinaryVersion(scalaVersion.value, snapshotScalaBinaryVersion.value)
21-
22- // so we don't have to wait for sonatype to synch to maven central when deploying a new module
23- resolvers += Resolver .sonatypeRepo(" releases" )
24-
25- // to allow compiling against snapshot versions of Scala
26- resolvers += Resolver .sonatypeRepo(" snapshots" )
18+ // TODO: enable "-Xfatal-warnings" for nightlies,
19+ // off by default because we don't want to break scala/scala pr validation due to deprecation
20+ // don't use for doc scope, scaladoc warnings are not to be reckoned with
21+ scalacOptions in (Compile , compile) ++= Seq (" -optimize" , " -feature" , " -deprecation" , " -unchecked" , " -Xlint" )
2722
28- // dependencies:
23+ // dependencies
24+ // versions involved in integration builds / that change frequently should be keys, set above!
2925libraryDependencies += " org.apache.ant" % " ant" % " 1.8.4"
3026
3127libraryDependencies += " com.googlecode.java-diff-utils" % " diffutils" % " 1.3.0"
@@ -46,70 +42,4 @@ libraryDependencies += "org.scala-lang" % "scala-reflect" % sca
4642
4743libraryDependencies += " org.scala-lang" % " scala-compiler" % scalaVersion.value % " provided" intransitive()
4844
49- // don't use for doc scope, scaladoc warnings are not to be reckoned with
50- // "-Xfatal-warnings",
51- scalacOptions in (Compile , compile) ++= Seq (" -optimize" , " -feature" , " -deprecation" , " -unchecked" , " -Xlint" )
52-
53-
54- // Generate $name.properties to store our version as well as the scala version used to build
55- // TODO: why doesn't this work for scala-partest.properties?? (After updating def propCategory in Properties, of course)
56- resourceGenerators in Compile <+= Def .task {
57- val props = new java.util.Properties
58- props.put(" version.number" , version.value)
59- props.put(" scala.version.number" , scalaVersion.value)
60- props.put(" scala.binary.version.number" , scalaBinaryVersion.value)
61- val file = (resourceManaged in Compile ).value / " partest.properties"
62- IO .write(props, null , file)
63- Seq (file)
64- }
65-
66- mappings in (Compile , packageBin) += {
67- (baseDirectory.value / " partest.properties" ) -> " partest.properties"
68- }
69-
70-
71- // maven publishing
72- publishTo := {
73- val nexus = " https://oss.sonatype.org/"
74- if (version.value.trim.endsWith(" SNAPSHOT" ))
75- Some (" snapshots" at nexus + " content/repositories/snapshots" )
76- else
77- Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
78- }
79-
80- publishMavenStyle := true
81-
82- publishArtifact in Test := false
83-
84- pomIncludeRepository := { _ => false }
85-
86- pomExtra := (
87- <url >http:// www.scala- lang.org/</ url>
88- <inceptionYear >2002 </inceptionYear >
89- <licenses >
90- <license >
91- <distribution >repo</distribution >
92- <name >BSD 3 - Clause </name >
93- <url >https:// github.com/ scala/ {name.value}/ blob/ master/ LICENSE .md</url >
94- </license >
95- </licenses >
96- <scm >
97- <connection >scm: git: git:// github.com/ scala/ {name.value}.git</connection >
98- <url >https:// github.com/ scala/ {name.value}</url >
99- </scm >
100- <issueManagement >
101- <system >JIRA </system >
102- <url >https:// issues.scala- lang.org/</ url>
103- </issueManagement >
104- <developers >
105- <developer >
106- <id >epfl</id >
107- <name >EPFL </name >
108- </developer >
109- <developer >
110- <id >Typesafe </id >
111- <name >Typesafe , Inc .</name >
112- </developer >
113- </developers >
114- )
115-
45+ // the boilerplate is in standard.sbt
0 commit comments