mirror of https://github.com/sbt/sbt.git
Merge pull request #7830 from Friendseeker/remove-early-output-version
[1.x] Use generic early output file name
This commit is contained in:
commit
4e15180596
|
|
@ -1818,16 +1818,8 @@ object Defaults extends BuildCommon {
|
||||||
extraPrefix: String
|
extraPrefix: String
|
||||||
): Initialize[File] =
|
): Initialize[File] =
|
||||||
Def.setting {
|
Def.setting {
|
||||||
val f = artifactName.value
|
|
||||||
crossTarget.value /
|
crossTarget.value /
|
||||||
(prefix(configuration.value.name) + extraPrefix) / f(
|
(prefix(configuration.value.name) + "early") / "early.jar"
|
||||||
ScalaVersion(
|
|
||||||
(artifactName / scalaVersion).value,
|
|
||||||
(artifactName / scalaBinaryVersion).value
|
|
||||||
),
|
|
||||||
projectID.value,
|
|
||||||
art.value
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private[sbt] def prefixArtifactPathSetting(
|
private[sbt] def prefixArtifactPathSetting(
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,6 @@ lazy val use = project
|
||||||
val x = (dep / Compile / compile).value
|
val x = (dep / Compile / compile).value
|
||||||
val picklePath = (Compile / internalDependencyPicklePath).value
|
val picklePath = (Compile / internalDependencyPicklePath).value
|
||||||
assert(picklePath.size == 1 &&
|
assert(picklePath.size == 1 &&
|
||||||
picklePath.head.data.name == "dep_2.13-0.1.0-SNAPSHOT.jar", s"picklePath = ${picklePath}")
|
picklePath.head.data.name == "early.jar", s"picklePath = ${picklePath}")
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue