Skip to content

Commit

Permalink
Added more @experimental annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Oct 9, 2022
1 parent c638fd5 commit 2dbe780
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/buildfile/src/ammoniteParser.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package mill.buildfile

import mill.api.experimental

import java.util.regex.Pattern
import scala.collection.mutable
import scala.util.matching.Regex

@experimental
object AmmoniteParser {

private val MatchDep = """^import ([$]ivy[.]`([^`]+)`).*""".r
Expand Down
6 changes: 6 additions & 0 deletions main/buildfile/src/usingParser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import com.virtuslab.using_directives.custom.{Parser, SimpleCommentExtractor}
import com.virtuslab.using_directives.reporter.ConsoleReporter
import upickle.default.{ReadWriter, macroRW}
import mill.api.JsonFormatters._
import mill.api.experimental

import java.nio.charset.Charset
import scala.jdk.CollectionConverters.CollectionHasAsScala

@experimental
case class ParsedMillSetup(
projectDir: os.Path,
directives: Seq[MillUsingDirective],
Expand All @@ -28,14 +30,17 @@ case class ParsedMillSetup(
}
}

@experimental
object ParsedMillSetup {
implicit val upickleRW: ReadWriter[ParsedMillSetup] = macroRW
}

@experimental
sealed trait MillUsingDirective {
def sourceFile: os.Path
}

@experimental
object MillUsingDirective {

case class Dep(raw: String, sourceFile: os.Path) extends MillUsingDirective
Expand All @@ -61,6 +66,7 @@ object MillUsingDirective {

}

@experimental
object ReadDirectives {

def readVersionFiles(projectDir: os.Path): Seq[MillUsingDirective.MillVersion] = {
Expand Down

0 comments on commit 2dbe780

Please sign in to comment.