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 {
1101
1101
" --include-categories=dotty.communitybuild.TestCategory" ,
1102
1102
),
1103
1103
(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
+ }
1105
1116
)
1106
1117
1107
1118
lazy val publishSettings = Seq (
You can’t perform that action at this time.
0 commit comments