Skip to content

Commit 386af80

Browse files
authored
Merge pull request #3835 from dotty-staging/sbt-pack
Bump sbt-pack version
2 parents 576f6c6 + 9efb7c1 commit 386af80

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

.drone.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,37 @@ pipeline:
1515
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict
1616
test_legacy:
1717
group: test
18-
image: lampepfl/dotty:2017-11-17
18+
image: lampepfl/dotty:2018-01-15
1919
commands:
2020
- cp -R . /tmp/0/ && cd /tmp/0/
2121
- ./project/scripts/sbt legacyTests
2222

2323
test:
2424
group: test
25-
image: lampepfl/dotty:2017-11-17
25+
image: lampepfl/dotty:2018-01-15
2626
commands:
2727
- cp -R . /tmp/1/ && cd /tmp/1/
2828
- ./project/scripts/sbt ";compile ;test"
2929
- ./project/scripts/sbtTests
3030

3131
test_bootstrapped:
3232
group: test
33-
image: lampepfl/dotty:2017-11-17
33+
image: lampepfl/dotty:2018-01-15
3434
commands:
3535
- cp -R . /tmp/2/ && cd /tmp/2/
3636
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test"
3737
- ./project/scripts/sbtBootstrappedTests
3838

3939
test_optimised:
4040
group: test
41-
image: lampepfl/dotty:2017-11-17
41+
image: lampepfl/dotty:2018-01-15
4242
commands:
4343
- cp -R . /tmp/3/ && cd /tmp/3/
4444
- ./project/scripts/sbt dotty-optimised/test
4545

4646
test_sbt:
4747
group: test
48-
image: lampepfl/dotty:2017-11-17
48+
image: lampepfl/dotty:2018-01-15
4949
commands:
5050
- cp -R . /tmp/4/ && cd /tmp/4/
5151
- ./project/scripts/sbt sbt-dotty/scripted
@@ -55,7 +55,7 @@ pipeline:
5555

5656
# DOCUMENTATION:
5757
documentation:
58-
image: lampepfl/dotty:2017-11-17
58+
image: lampepfl/dotty:2018-01-15
5959
commands:
6060
- ./project/scripts/genDocs
6161
secrets: [ bot_pass ]
@@ -67,7 +67,7 @@ pipeline:
6767
# PUBLISHING:
6868
# Publishing expect NIGHTLYBUILD or RELEASEBUILD to be set. See dottyVersion in Build.scala
6969
publish_nightly:
70-
image: lampepfl/dotty:2017-11-17
70+
image: lampepfl/dotty:2018-01-15
7171
environment:
7272
- NIGHTLYBUILD=yes
7373
commands:
@@ -78,7 +78,7 @@ pipeline:
7878
environment: nightly
7979

8080
publish_release:
81-
image: lampepfl/dotty:2017-11-17
81+
image: lampepfl/dotty:2018-01-15
8282
environment:
8383
- RELEASEBUILD=yes
8484
commands:
@@ -102,7 +102,7 @@ pipeline:
102102
event: tag
103103

104104
publish_sbt_release:
105-
image: lampepfl/dotty:2017-11-17
105+
image: lampepfl/dotty:2018-01-15
106106
environment:
107107
- RELEASEBUILD=yes
108108
commands:

project/Build.scala

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import java.util.Calendar
88

99
import scala.reflect.io.Path
1010
import sbtassembly.AssemblyKeys.assembly
11-
import xerial.sbt.Pack._
11+
12+
import xerial.sbt.pack.PackPlugin
13+
import xerial.sbt.pack.PackPlugin.autoImport._
1214

1315
import sbt.Package.ManifestAttributes
1416

@@ -1121,9 +1123,10 @@ object Build {
11211123
))
11221124
}
11231125

1124-
lazy val commonDistSettings = packSettings ++ Seq(
1126+
lazy val commonDistSettings = Seq(
11251127
packMain := Map(),
11261128
publishArtifact := false,
1129+
packGenerateMakefile := false,
11271130
packExpandedClasspath := true,
11281131
packResourceDir += (baseDirectory.value / "bin" -> "bin"),
11291132
packArchiveName := "dotty-" + dottyVersion
@@ -1171,11 +1174,10 @@ object Build {
11711174
settings(commonBenchmarkSettings).
11721175
enablePlugins(JmhPlugin)
11731176

1174-
def asDist(implicit mode: Mode): Project = project.withCommonSettings.
1175-
dependsOn(`dotty-interfaces`).
1176-
dependsOn(dottyCompiler).
1177-
dependsOn(dottyLibrary).
1178-
dependsOn(dottyDoc).
1177+
def asDist(implicit mode: Mode): Project = project.
1178+
enablePlugins(PackPlugin).
1179+
withCommonSettings.
1180+
dependsOn(`dotty-interfaces`, dottyCompiler, dottyLibrary, dottyDoc).
11791181
settings(commonDistSettings).
11801182
bootstrappedSettings(target := baseDirectory.value / "target") // override setting in commonBootstrappedSettings
11811183

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
1313

1414
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
1515

16-
addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.8.2")
16+
addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.10.1")
1717

1818
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.2.24")
1919

0 commit comments

Comments
 (0)