File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1101,7 +1101,18 @@ object Build {
11011101 " --include-categories=dotty.communitybuild.TestCategory" ,
11021102 ),
11031103 (Test / testOnly) := ((Test / testOnly) dependsOn prepareCommunityBuild).evaluated,
1104- (Test / test ) := ((Test / test ) dependsOn prepareCommunityBuild).value
1104+ (Test / test ) := ((Test / test ) dependsOn prepareCommunityBuild).value,
1105+ javaOptions ++= {
1106+ // Propagate the ivy cache directory setting to the tests, which will
1107+ // then propagate it further to the sbt instances they will spawn.
1108+ val sbtProps = Option (System .getProperty(" sbt.ivy.home" )) match {
1109+ case Some (ivyHome) =>
1110+ Seq (s " -Dsbt.ivy.home= $ivyHome" )
1111+ case _ =>
1112+ Seq ()
1113+ }
1114+ sbtProps
1115+ }
11051116 )
11061117
11071118 lazy val publishSettings = Seq (
You can’t perform that action at this time.
0 commit comments