mirror of https://github.com/sbt/sbt.git
Adopt PR feedbacks
This commit is contained in:
parent
824395f6be
commit
4beb78b260
|
|
@ -178,8 +178,7 @@ def mimaSettingsSince(versions: Seq[String]): Seq[Def.Setting[_]] = Def settings
|
|||
exclude[DirectMissingMethodProblem]("sbt.PluginData.this"),
|
||||
exclude[IncompatibleResultTypeProblem]("sbt.EvaluateTask.executeProgress"),
|
||||
exclude[DirectMissingMethodProblem]("sbt.Keys.currentTaskProgress"),
|
||||
exclude[IncompatibleResultTypeProblem]("sbt.PluginData.copy$default$10"),
|
||||
exclude[DirectMissingMethodProblem]("sbt.Defaults.configArtifactPathSetting"),
|
||||
exclude[IncompatibleResultTypeProblem]("sbt.PluginData.copy$default$10")
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -647,8 +647,7 @@ object Defaults extends BuildCommon {
|
|||
val dir = classDirectory.value
|
||||
converter.toVirtualFile(dir.toPath)
|
||||
},
|
||||
earlyOutput / artifactPath := crossTarget.value /
|
||||
(prefix(configuration.value.name) + "early") / "early.jar",
|
||||
earlyOutput / artifactPath := configArtifactPathSetting(artifact, "early").value,
|
||||
earlyOutput := {
|
||||
val converter = fileConverter.value
|
||||
val jar = (earlyOutput / artifactPath).value
|
||||
|
|
@ -1814,6 +1813,15 @@ object Defaults extends BuildCommon {
|
|||
excludes: ScopedTaskable[FileFilter]
|
||||
): Initialize[Task[Seq[File]]] = collectFiles(dirs: Taskable[Seq[File]], filter, excludes)
|
||||
|
||||
private[sbt] def configArtifactPathSetting(
|
||||
art: SettingKey[Artifact],
|
||||
extraPrefix: String
|
||||
): Initialize[File] =
|
||||
Def.setting {
|
||||
crossTarget.value /
|
||||
(prefix(configuration.value.name) + "early") / "early.jar"
|
||||
}
|
||||
|
||||
private[sbt] def prefixArtifactPathSetting(
|
||||
art: SettingKey[Artifact],
|
||||
extraPrefix: String
|
||||
|
|
|
|||
Loading…
Reference in New Issue