Skip to content

Commit 7662b5a

Browse files
authored
Merge pull request #769 from Dwolla/issue-768
use the same base classpath for empty packages as is used for normal packages
2 parents 293acf4 + cc299fc commit 7662b5a

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

core/src/main/scala/com/typesafe/tools/mima/lib/MiMaLib.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class MiMaLib(cp: Seq[File], log: Logging = ConsoleLogging) {
2323

2424
private def createEmptyPackage(missingDirOrJar: File): PackageInfo = {
2525
log.debug(s"not a directory or jar file: $missingDirOrJar. This is normal for POM-only modules. Proceeding with empty set of packages.")
26-
val defs = new Definitions(ClassPath.base)
26+
val defs = new Definitions(classpath)
2727
new DefinitionsTargetPackageInfo(defs.root)
2828
}
2929

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
organization := "com.typesafe"
2+
name := "pom-only-project"
3+
version := "1.1.0"
4+
mimaPreviousArtifacts := Set(organization.value %% moduleName.value % "1.0.0")
5+
scalaVersion := "2.13.11"
6+
7+
// this is an arbitrary dependency, but one that's known to cause issues in POM-only projects
8+
// see https://github.com/lightbend/mima/issues/768 for more context
9+
libraryDependencies += "com.twitter" %% "util-core" % "22.7.0"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % System.getProperty("plugin.version"))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
> set version := "1.0.0"
2+
> publishLocal
3+
4+
> reload
5+
6+
> mimaReportBinaryIssues

0 commit comments

Comments
 (0)