File tree Expand file tree Collapse file tree 16 files changed +6
-42
lines changed Expand file tree Collapse file tree 16 files changed +6
-42
lines changed Original file line number Diff line number Diff line change @@ -1291,6 +1291,12 @@ object Build {
1291
1291
version := sbtCommunityBuildVersion,
1292
1292
organization := " ch.epfl.lamp" ,
1293
1293
sbtTestDirectory := baseDirectory.value / " sbt-test" ,
1294
+
1295
+ // hack to run the scripted tests on a nightly version of sbt
1296
+ // see https://github.com/sbt/sbt/issues/6347
1297
+ scriptedSbt := " 1.4.7" ,
1298
+ scriptedLaunchOpts ++= Seq (" -Dsbt.version=1.5.0-bin-20210302T081602" ),
1299
+
1294
1300
scriptedLaunchOpts ++= Seq (
1295
1301
" -Dplugin.version=" + version.value,
1296
1302
" -Dplugin.scalaVersion=" + dottyVersion,
Original file line number Diff line number Diff line change @@ -9,14 +9,12 @@ lazy val a = project
9
9
)
10
10
11
11
lazy val b = project
12
- .settings(onlyThisTestResolverSettings)
13
12
.settings(
14
13
name := " b" ,
15
14
libraryDependencies := Seq (organization.value %% " a" % " 0.4.0-SNAPSHOT" ),
16
15
)
17
16
18
17
lazy val c = project
19
- .settings(onlyThisTestResolverSettings)
20
18
.settings(
21
19
name := " c" ,
22
20
libraryDependencies := Seq (), // don't depend on scala-library
Original file line number Diff line number Diff line change @@ -24,10 +24,4 @@ object ThisTestPlugin extends AutoPlugin {
24
24
deleteDepsFile := IO .delete(file(sys.props(" dotty.communitybuild.dir" )) / " dotty-community-build-deps" ),
25
25
)
26
26
}
27
-
28
- object autoImport {
29
- def onlyThisTestResolverSettings : Seq [Setting [_]] = Seq (
30
- externalResolvers := thisTestResolver.value :: Nil
31
- )
32
- }
33
27
}
Original file line number Diff line number Diff line change 1
1
addSbtPlugin(" ch.epfl.lamp" % " sbt-community-build" % sys.props(" plugin.version" ))
2
- addSbtPlugin(" ch.epfl.lamp" % " sbt-dotty" % sys.props(" plugin.sbtDottyVersion" ))
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ lazy val b = project
16
16
)
17
17
18
18
lazy val c = project
19
- .settings(onlyThisTestResolverSettings)
20
19
.settings(
21
20
name := " c" ,
22
21
libraryDependencies := Seq (
Original file line number Diff line number Diff line change @@ -24,10 +24,4 @@ object ThisTestPlugin extends AutoPlugin {
24
24
deleteDepsFile := IO .delete(file(sys.props(" dotty.communitybuild.dir" )) / " dotty-community-build-deps" ),
25
25
)
26
26
}
27
-
28
- object autoImport {
29
- def onlyThisTestResolverSettings : Seq [Setting [_]] = Seq (
30
- externalResolvers := thisTestResolver.value :: Nil
31
- )
32
- }
33
27
}
Original file line number Diff line number Diff line change 1
1
addSbtPlugin(" ch.epfl.lamp" % " sbt-community-build" % sys.props(" plugin.version" ))
2
- addSbtPlugin(" ch.epfl.lamp" % " sbt-dotty" % sys.props(" plugin.sbtDottyVersion" ))
Original file line number Diff line number Diff line change @@ -17,15 +17,13 @@ lazy val aJS = project
17
17
)
18
18
19
19
lazy val bJVM = project
20
- .settings(onlyThisTestResolverSettings)
21
20
.settings(
22
21
name := " b" ,
23
22
libraryDependencies := Seq (organization.value %%% " a" % " 0.5.0-SNAPSHOT" ),
24
23
)
25
24
26
25
lazy val bJS = project
27
26
.enablePlugins(ScalaJSPlugin )
28
- .settings(onlyThisTestResolverSettings)
29
27
.settings(
30
28
name := " b" ,
31
29
libraryDependencies := Seq (organization.value %%% " a" % " 0.5.0-SNAPSHOT" ),
Original file line number Diff line number Diff line change @@ -24,10 +24,4 @@ object ThisTestPlugin extends AutoPlugin {
24
24
deleteDepsFile := IO .delete(file(sys.props(" dotty.communitybuild.dir" )) / " dotty-community-build-deps" ),
25
25
)
26
26
}
27
-
28
- object autoImport {
29
- def onlyThisTestResolverSettings : Seq [Setting [_]] = Seq (
30
- externalResolvers := thisTestResolver.value :: Nil
31
- )
32
- }
33
27
}
Original file line number Diff line number Diff line change 1
1
addSbtPlugin(" ch.epfl.lamp" % " sbt-community-build" % sys.props(" plugin.version" ))
2
- addSbtPlugin(" ch.epfl.lamp" % " sbt-dotty" % sys.props(" plugin.sbtDottyVersion" ))
3
2
addSbtPlugin(" org.scala-js" % " sbt-scalajs" % sys.props(" plugin.scalaJSVersion" ))
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ lazy val a = project
9
9
)
10
10
11
11
lazy val b = project
12
- .settings(onlyThisTestResolverSettings)
13
12
.settings(
14
13
name := " b" ,
15
14
libraryDependencies := Seq (organization.value %% " a" % " 0.1.0-SNAPSHOT" ),
Original file line number Diff line number Diff line change @@ -24,10 +24,4 @@ object ThisTestPlugin extends AutoPlugin {
24
24
deleteDepsFile := IO .delete(file(sys.props(" dotty.communitybuild.dir" )) / " dotty-community-build-deps" ),
25
25
)
26
26
}
27
-
28
- object autoImport {
29
- def onlyThisTestResolverSettings : Seq [Setting [_]] = Seq (
30
- externalResolvers := thisTestResolver.value :: Nil
31
- )
32
- }
33
27
}
Original file line number Diff line number Diff line change 1
1
addSbtPlugin(" ch.epfl.lamp" % " sbt-community-build" % sys.props(" plugin.version" ))
2
- addSbtPlugin(" ch.epfl.lamp" % " sbt-dotty" % sys.props(" plugin.sbtDottyVersion" ))
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ lazy val b = project
16
16
)
17
17
18
18
lazy val c = project
19
- .settings(onlyThisTestResolverSettings)
20
19
.settings(
21
20
name := " c" ,
22
21
libraryDependencies := Seq (organization.value %% " b" % " 1.3.0-SNAPSHOT" ),
Original file line number Diff line number Diff line change @@ -24,10 +24,4 @@ object ThisTestPlugin extends AutoPlugin {
24
24
deleteDepsFile := IO .delete(file(sys.props(" dotty.communitybuild.dir" )) / " dotty-community-build-deps" ),
25
25
)
26
26
}
27
-
28
- object autoImport {
29
- def onlyThisTestResolverSettings : Seq [Setting [_]] = Seq (
30
- externalResolvers := thisTestResolver.value :: Nil
31
- )
32
- }
33
27
}
Original file line number Diff line number Diff line change 1
1
addSbtPlugin(" ch.epfl.lamp" % " sbt-community-build" % sys.props(" plugin.version" ))
2
- addSbtPlugin(" ch.epfl.lamp" % " sbt-dotty" % sys.props(" plugin.sbtDottyVersion" ))
You can’t perform that action at this time.
0 commit comments