Skip to content

Commit 716bd19

Browse files
authored
Enable autoAPIMappings in build (scala#8364)
Enable autoAPIMappings in build
2 parents 4a5ee8c + 0f08236 commit 716bd19

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build.sbt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ lazy val commonSettings = instanceSettings ++ clearSourceAndResourceDirectories
244244
Map.empty[File,URL]
245245
}
246246
},
247-
apiURL := Some(url("https://www.scala-lang.org/api/" + versionProperties.value.mavenVersion + "/")),
247+
apiURL := None, // set on a per-project basis
248+
autoAPIMappings := true,
248249
pomIncludeRepository := { _ => false },
249250
pomExtra := {
250251
<scm>
@@ -435,6 +436,7 @@ lazy val library = configureAsSubproject(project)
435436
"/project/description" -> <description>Standard library for the Scala Programming Language</description>,
436437
"/project/packaging" -> <packaging>jar</packaging>
437438
),
439+
apiURL := Some(url(s"https://www.scala-lang.org/api/${versionProperties.value.mavenVersion}/")),
438440
mimaPreviousArtifacts := mimaReferenceVersion.value.map(organization.value % name.value % _).toSet,
439441
mimaCheckDirection := "both",
440442
mimaFilterSettings,
@@ -467,6 +469,7 @@ lazy val reflect = configureAsSubproject(project)
467469
"/project/description" -> <description>Compiler for the Scala Programming Language</description>,
468470
"/project/packaging" -> <packaging>jar</packaging>
469471
),
472+
apiURL := Some(url(s"https://www.scala-lang.org/api/${versionProperties.value.mavenVersion}/scala-${thisProject.value.id}/")),
470473
mimaPreviousArtifacts := mimaReferenceVersion.value.map(organization.value % name.value % _).toSet,
471474
mimaCheckDirection := "both",
472475
mimaFilterSettings,
@@ -536,7 +539,7 @@ lazy val compiler = configureAsSubproject(project)
536539
"/project/description" -> <description>Compiler for the Scala Programming Language</description>,
537540
"/project/packaging" -> <packaging>jar</packaging>
538541
),
539-
apiURL := None,
542+
apiURL := Some(url(s"https://www.scala-lang.org/api/${versionProperties.value.mavenVersion}/scala-${thisProject.value.id}/")),
540543
pomDependencyExclusions += (("org.scala-lang.modules", "scala-asm"))
541544
)
542545
.dependsOn(library, reflect)

0 commit comments

Comments
 (0)