mirror of https://github.com/sbt/sbt.git
Include managed sources in packageSrc
This commit is contained in:
parent
e209499544
commit
7c221ef97f
|
|
@ -49,7 +49,14 @@ lazy val lm = (project in file("librarymanagement")).
|
||||||
libraryDependencies ++= scalaXml.value,
|
libraryDependencies ++= scalaXml.value,
|
||||||
resourceGenerators in Compile += Def.task(Util.generateVersionFile(version.value, resourceManaged.value, streams.value, (compile in Compile).value)).taskValue,
|
resourceGenerators in Compile += Def.task(Util.generateVersionFile(version.value, resourceManaged.value, streams.value, (compile in Compile).value)).taskValue,
|
||||||
binaryIssueFilters ++= Seq(),
|
binaryIssueFilters ++= Seq(),
|
||||||
datatypeFormatsForType in generateDatatypes in Compile := DatatypeConfig.getFormats
|
datatypeFormatsForType in generateDatatypes in Compile := DatatypeConfig.getFormats,
|
||||||
|
// WORKAROUND sbt/sbt#2205 include managed sources in packageSrc
|
||||||
|
mappings in (Compile, packageSrc) ++= {
|
||||||
|
val srcs = (managedSources in Compile).value
|
||||||
|
val sdirs = (managedSourceDirectories in Compile).value
|
||||||
|
val base = baseDirectory.value
|
||||||
|
(((srcs --- sdirs --- base) pair (relativeTo(sdirs) | relativeTo(base) | flat)) toSeq)
|
||||||
|
}
|
||||||
).
|
).
|
||||||
configure(addSbtIO, addSbtUtilLogging, addSbtUtilTesting, addSbtUtilCollection, addSbtUtilCompletion, addSbtUtilCache).
|
configure(addSbtIO, addSbtUtilLogging, addSbtUtilTesting, addSbtUtilCollection, addSbtUtilCompletion, addSbtUtilCache).
|
||||||
enablePlugins(DatatypePlugin, JsonCodecPlugin)
|
enablePlugins(DatatypePlugin, JsonCodecPlugin)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue