summaryrefslogtreecommitdiff
path: root/project/Build.scala
diff options
context:
space:
mode:
authorJosh Suereth <joshua.suereth@gmail.com>2011-12-06 13:13:02 -0500
committerJosh Suereth <joshua.suereth@gmail.com>2011-12-06 13:13:02 -0500
commit4c76201be849b658e29004cd5749f18198547b5d (patch)
tree30094fa717806446fb162315fcfdb65a196763ac /project/Build.scala
parent57eb3abad07a5a8e07f84312857098e0bb22bcf4 (diff)
downloadscala-4c76201be849b658e29004cd5749f18198547b5d.tar.gz
scala-4c76201be849b658e29004cd5749f18198547b5d.tar.bz2
scala-4c76201be849b658e29004cd5749f18198547b5d.zip
Fixed publish issue.
* Cleaned up layered build settings definition * Removed scalaVersion specification from build (not NEEDED). * Fixed a migration from build.sbt to project/Build.scala where publish settings were only being used on the root project and not also used for sub-projects which are published.
Diffstat (limited to 'project/Build.scala')
-rw-r--r--project/Build.scala12
1 files changed, 2 insertions, 10 deletions
diff --git a/project/Build.scala b/project/Build.scala
index 6ffdffa005..0f48b3b742 100644
--- a/project/Build.scala
+++ b/project/Build.scala
@@ -32,7 +32,6 @@ object ScalaBuild extends Build with Layers {
),
organization := "org.scala-lang",
version := "2.10.0-SNAPSHOT",
- scalaVersion := "2.10.0-SNAPSHOT",
pomExtra := <xml:group>
<inceptionYear>2002</inceptionYear>
<licenses>
@@ -99,8 +98,7 @@ object ScalaBuild extends Build with Layers {
</xml:group>
)
- // maven/ivy settings I pulled from build.sbt to keep it lean and mean
- // XXX not sure where they go though, please advise or fix
+ // Settings used to make sure publishing goes smoothly.
def publishSettings: Seq[Setting[_]] = Seq(
ivyScala ~= ((is: Option[IvyScala]) => is.map(_.copy(checkExplicit = false))),
pomIncludeRepository := (_ => false),
@@ -152,13 +150,7 @@ object ScalaBuild extends Build with Layers {
)
// These are setting overrides for most artifacts in the Scala build file.
- // TODO - what can we move into build.sbt...
- // @PP: Ha, and here I'm moving stuff out of it. Clearly I need to
- // be educated on the merits of having more stuff in build.sbt. I think
- // of it as a good place for items I am frequently changing (logLevel,
- // compiler options, etc.) and not so good for anything else. But you
- // use this stuff a lot more than I do.
- def settingOverrides: Seq[Setting[_]] = Seq(
+ def settingOverrides: Seq[Setting[_]] = publishSettings ++ Seq(
crossPaths := false,
publishArtifact in packageDoc := false,
publishArtifact in packageSrc := false,