Skip to content

Commit

Permalink
Change millBinPlatform to 0.13 (#4607)
Browse files Browse the repository at this point in the history
This will unblock lib maintainers to start supporting M versions
  • Loading branch information
joan38 authored Feb 21, 2025
1 parent 601c5ae commit a6992ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,12 @@ def millDownloadUrl = Task {
}

def millBinPlatform: T[String] = Task {
// val tag = millLastTag()
// if (tag.contains("-M")) tag
// else {
// val pos = if (tag.startsWith("0.")) 2 else 1
// tag.split("[.]", pos + 1).take(pos).mkString(".")
// }
"0.11"
val tag = millLastTag()
if (tag.contains("-M")) tag
else {
val pos = if (tag.startsWith("0.")) 2 else 1
tag.split("[.]", pos + 1).take(pos).mkString(".")
}
}

def baseDir = build.millSourcePath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ compiling 1 Scala source...
> sed -i.bak 's/0.0.1/0.0.2/g' build.mill

> ./mill myplugin.publishLocal
Publishing Artifact(com.lihaoyi,myplugin_mill0.11_3,0.0.2) to ivy repo...
Publishing Artifact(com.lihaoyi,myplugin_millSNAPSHOT_3,0.0.2) to ivy repo...

*/
// Mill plugins are JVM libraries like any other library written in Java or Scala. Thus they
Expand Down

0 comments on commit a6992ed

Please sign in to comment.