Skip to content

Commit 4a93ee0

Browse files
committed
Merge remote-tracking branch 'origin/2.11.x' into 2.12.x
2 parents b8b1271 + e0dc154 commit 4a93ee0

File tree

7 files changed

+24
-12
lines changed

7 files changed

+24
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The specification also used to be in this repo -- it is now a part of the main r
3434
- install Windows 7 professional N 64-bit, ensure network access to GitHub
3535
- install Oracle Java 6 JDK
3636
- install WiX v3.6 (reboot!)
37-
- download sbt launcher 0.13.1 from xsbt.org to `c:\users\jenkins\Downloads`
37+
- download sbt launcher from xsbt.org to `c:\users\jenkins\Downloads`
3838
- install Git
3939
- configure the Jenkins master's tool locations for
4040
- HOME

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Docs.settings
2323

2424
ScalaDist.platformSettings
2525

26-
enablePlugins(UniversalPlugin, RpmPlugin, JDebPackaging)
26+
enablePlugins(UniversalPlugin, RpmPlugin, JDebPackaging, WindowsPlugin)
2727

2828
// resolvers += "local" at "file:///e:/.m2/repository"
2929
// resolvers += Resolver.mavenLocal

project/Docs.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object Docs {
1616
import ScalaDist._
1717

1818
def settings: Seq[Setting[_]] = Seq(
19-
name in UniversalDocs := s"scala-docs-${version.value}",
19+
packageName in UniversalDocs := s"scala-docs-${version.value}",
2020
// libraryDependencies += scalaDistDep(version.value, "javadoc"), // seems not to be necessary
2121
// need updateClassifiers to get javadoc jars
2222
mappings in UniversalDocs ++= createMappingsWith(updateClassifiers.value.toSeq, universalDocsMappings)

project/ScalaDist.scala

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,15 @@ object ScalaDist {
3535
mappings in upload += uploadMapping(packageZipTarball in UniversalDocs).value,
3636
mappings in upload += uploadMapping(packageXzTarball in UniversalDocs).value,
3737
mappings in upload += uploadMapping(packageBin in Rpm).value,
38-
mappings in upload += uploadMapping(packageBin in Debian).value
38+
// Debian needs special handling because the value sbt-native-packager
39+
// gives us for `packageBin in Debian` (coming from the archiveFilename
40+
// method) includes the debian version and arch information,
41+
// which we historically have not included. I don't see a way to
42+
// override the filename on disk, so we re-map at upload time
43+
mappings in upload += Def.task {
44+
(packageBin in Debian).value ->
45+
s"scala/${version.value}/${(name in Debian).value}-${version.value}.deb"
46+
}.value
3947
)
4048

4149
def settings: Seq[Setting[_]] =
@@ -52,7 +60,13 @@ object ScalaDist {
5260

5361
// create lib directory by resolving scala-dist's dependencies
5462
// to populate the rest of the distribution, explode scala-dist artifact itself
55-
mappings in Universal ++= createMappingsWith(update.value.toSeq, universalMappings)
63+
mappings in Universal ++= createMappingsWith(update.value.toSeq, universalMappings),
64+
65+
// work around regression in sbt-native-packager 1.0.5 where
66+
// these tasks invoke `tar` without any flags at all
67+
universalArchiveOptions in (UniversalDocs, packageZipTarball) := Seq("--force-local", "-pcvf"),
68+
universalArchiveOptions in (UniversalDocs, packageXzTarball ) := Seq("--force-local", "-pcvf")
69+
5670
)
5771

5872
// private lazy val onWindows = System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("windows")

project/Unix.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,10 @@ object Unix {
8989
// Debian Specific
9090
name in Debian := "scala",
9191
debianPackageDependencies += "java8-runtime-headless",
92-
// debianPackageDependencies += "libjansi-java",
9392

9493
linuxPackageMappings in Debian += (packageMapping(
9594
(sourceDirectory.value / "debian" / "changelog") -> "/usr/share/doc/scala/changelog.gz"
96-
) withUser "root" withGroup "root" withPerms "0644" gzipped) asDocs(),
97-
98-
// Hack so we use regular version, rather than debian version.
99-
target in Debian := target.value / s"${(name in Debian).value}-${version.value}"
95+
).withUser("root").withGroup("root").withPerms("0644").gzipped).asDocs()
10096

10197
)
10298
}

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.7
1+
sbt.version=0.13.9

project/plugins.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.4")
1+
scalacOptions ++= Seq("-deprecation", "-feature", "-Xlint")
2+
3+
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.6")
24

35
addSbtPlugin("com.typesafe.sbt" % "sbt-s3" % "0.8")
46

0 commit comments

Comments
 (0)