File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
modules/core/src/main/scala/org/scalasteward/core/buildtool/mill Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -85,19 +85,14 @@ final class MillAlg[F[_]](implicit
85
85
object MillAlg {
86
86
private [mill] def content (millVersion : Option [Version ]) = {
87
87
def rawContent (millBinPlatform : String ) =
88
- s """ |import coursierapi.MavenRepository
89
- |
90
- |interp.repositories() ++= Seq(
91
- | MavenRepository.of("https://oss.sonatype.org/content/repositories/snapshots/")
92
- |)
93
- |interp.load.ivy(" ${org.scalasteward.core.BuildInfo .organization}" %% " ${org.scalasteward.core.BuildInfo .millPluginArtifactName}_mill ${millBinPlatform}" % " ${org.scalasteward.core.BuildInfo .millPluginVersion}")
88
+ s """ |import $$ ivy.` ${org.scalasteward.core.BuildInfo .organization}:: ${org.scalasteward.core.BuildInfo .millPluginArtifactName}_mill ${millBinPlatform}: ${org.scalasteward.core.BuildInfo .millPluginVersion}`
94
89
| """ .stripMargin
95
90
96
91
millVersion match {
97
92
case None => rawContent(" $MILL_BIN_PLATFORM" )
98
93
case Some (millVersion) =>
99
94
millVersion.value.trim.split(" [.]" , 3 ).take(2 ) match {
100
- // We support these platform , but we can't take the $ $MILL_BIN_PLATFORM support for granted
95
+ // We support these platforms , but we can't take the $MILL_BIN_PLATFORM support for granted
101
96
case Array (" 0" , " 6" ) => rawContent(" 0.6" )
102
97
case Array (" 0" , " 7" | " 8" ) => rawContent(" 0.7" )
103
98
case Array (" 0" , " 9" ) => rawContent(" 0.9" )
You can’t perform that action at this time.
0 commit comments