-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Java worker API to Scala (#157)
- Loading branch information
Showing
8 changed files
with
88 additions
and
114 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
mill-mima-worker-api/src/com/github/lolgab/mill/mima/worker/api/Artifact.java
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
mill-mima-worker-api/src/com/github/lolgab/mill/mima/worker/api/CheckDirection.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
mill-mima-worker-api/src/com/github/lolgab/mill/mima/worker/api/MimaWorkerApi.java
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
mill-mima-worker-api/src/com/github/lolgab/mill/mima/worker/api/MimaWorkerApi.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.github.lolgab.mill.mima.worker.api; | ||
|
||
import java.io.File | ||
|
||
trait MimaWorkerApi { | ||
def reportBinaryIssues( | ||
scalaBinaryVersion: Option[String], | ||
logDebug: String => Unit, | ||
logError: String => Unit, | ||
logPrintln: String => Unit, | ||
checkDirection: CheckDirection, | ||
runClasspath: Seq[File], | ||
artifacts: Seq[Artifact], | ||
current: File, | ||
binaryFilters: Seq[ProblemFilter], | ||
backwardFilters: Map[String, Seq[ProblemFilter]], | ||
forwardFilters: Map[String, Seq[ProblemFilter]], | ||
excludeAnnos: Seq[String], | ||
publishVersion: String | ||
): Option[String] | ||
} | ||
|
||
case class Artifact(prettyDep: String, file: File) | ||
|
||
sealed trait CheckDirection | ||
object CheckDirection { | ||
case object Backward extends CheckDirection | ||
case object Forward extends CheckDirection | ||
case object Both extends CheckDirection | ||
} | ||
|
||
case class ProblemFilter(name: String, problem: String) |
11 changes: 0 additions & 11 deletions
11
mill-mima-worker-api/src/com/github/lolgab/mill/mima/worker/api/ProblemFilter.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters