@@ -87,11 +87,12 @@ final case class MillCommunityProject(project: String, baseCommand: String,
87
87
88
88
final case class SbtCommunityProject (project : String , sbtTestCommand : String ,
89
89
sbtUpdateCommand : String , extraSbtArgs : List [String ] = Nil ,
90
- dependencies : List [CommunityProject ] = Nil , publishCommand : String = null ) extends CommunityProject
90
+ dependencies : List [CommunityProject ] = Nil , sbtPublishCommand : String = null ) extends CommunityProject
91
91
override val binaryName : String = " sbt"
92
92
private val baseCommand = s " ;clean ;set updateOptions in Global ~= (_.withLatestSnapshots(false)) ;++ $compilerVersion! "
93
93
override val testCommand = s " $baseCommand$sbtTestCommand"
94
94
override val updateCommand = s " $baseCommand$sbtUpdateCommand"
95
+ override val publishCommand = s " $baseCommand$sbtPublishCommand"
95
96
96
97
override val runCommandsArgs : List [String ] =
97
98
// Run the sbt command with the compiler version and sbt plugin set in the build
@@ -147,21 +148,21 @@ object projects
147
148
project = " scalacheck" ,
148
149
sbtTestCommand = " jvm/test" ,
149
150
sbtUpdateCommand = " jvm/test:update" ,
150
- publishCommand = " ;set jvm/publishArtifact in (Compile, packageDoc) := false ;jvm/publishLocal"
151
+ sbtPublishCommand = " ;set jvm/publishArtifact in (Compile, packageDoc) := false ;jvm/publishLocal"
151
152
)
152
153
153
154
lazy val scalatest = SbtCommunityProject (
154
155
project = " scalatest" ,
155
156
sbtTestCommand = " ;scalacticDotty/clean;scalacticTestDotty/test;scalatestTestDotty/test" ,
156
157
sbtUpdateCommand = " scalatest/update" ,
157
- publishCommand = " ;scalacticDotty/publishLocal; scalatestDotty/publishLocal"
158
+ sbtPublishCommand = " ;scalacticDotty/publishLocal; scalatestDotty/publishLocal"
158
159
)
159
160
160
161
lazy val scalatestplusScalacheck = SbtCommunityProject (
161
162
project = " scalatestplus-scalacheck" ,
162
163
sbtTestCommand = " scalatestPlusScalaCheckJVM/compile" , // TODO: compile only because tests are prone to java.lang.OutOfMemoryError: Metaspace
163
164
sbtUpdateCommand = " scalatestPlusScalaCheckJVM/update" ,
164
- publishCommand = " scalatestPlusScalaCheckJVM/publishLocal" ,
165
+ sbtPublishCommand = " scalatestPlusScalaCheckJVM/publishLocal" ,
165
166
dependencies = List (scalatest, scalacheck)
166
167
)
167
168
0 commit comments