Skip to content

Commit

Permalink
Merge pull request #711 from SethTisue/document-exclude-annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand authored Aug 3, 2022
2 parents c12aa68 + 3fef94a commit bc2729c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,24 @@ import com.typesafe.tools.mima.plugin.MimaKeys._
ThisBuild / mimaReportSignatureProblems := true
```

### Annotation-based exclusions

The `mimaExcludeAnnotations` setting can be used to tell MiMa to
ignore classes, objects, and methods that have a particular
annotation. Such an annotation might typically have "experimental" or
"internal" in the name.

The setting is a `Seq[String]` containing fully qualified annotation
names.

Example:

```scala
mimaExcludeAnnotations += "scala.annotation.experimental"
```

Caveat: `mimaExcludeAnnotations` is only implemented on Scala 3.

## Setting different mimaPreviousArtifacts

From time to time you may need to set `mimaPreviousArtifacts` according to some conditions. For
Expand Down

0 comments on commit bc2729c

Please sign in to comment.