Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove deprecations

  • Loading branch information...
commit f3142257127e0892562dd85938a024727e753f25 1 parent e1e6b25
@indrajitr indrajitr authored
View
2  main/TaskData.scala
@@ -36,7 +36,7 @@ object TaskData
def write[T](i: Initialize[Task[T]], id: String = DefaultDataID)(implicit f: Format[T]): Initialize[Task[T]] = writeRelated(i, id)(idFun[T])(f)
def writeRelated[T, S](i: Initialize[Task[T]], id: String = DefaultDataID)(convert: T => S)(implicit f: Format[S]): Initialize[Task[T]] =
- (streams.identity zipWith i) { (sTask, iTask) =>
+ (streams zipWith i) { (sTask, iTask) =>
(sTask,iTask) map { case s :+: value :+: HNil =>
Operations.write( s.binary(id), convert(value) )(f)
value
View
4 project/Sbt.scala
@@ -164,7 +164,7 @@ object Sbt extends Build
scriptedSource <<= (sourceDirectory in sbtSub) / "sbt-test",
sources in sxr <<= deepTasks(sources in Compile),
Sxr.sourceDirectories <<= deep(sourceDirectories in Compile).map(_.flatten),
- fullClasspath in sxr <<= (externalDependencyClasspath in Compile in sbtSub).identity,
+ fullClasspath in sxr <<= (externalDependencyClasspath in Compile in sbtSub),
compileInputs in (Compile,sxr) <<= (sources in sxr, compileInputs in sbtSub in Compile, fullClasspath in sxr) map { (srcs, in, cp) =>
in.copy(config = in.config.copy(sources = srcs, classpath = cp.files))
},
@@ -178,7 +178,7 @@ object Sbt extends Build
projectComponent,
exportJars := true,
componentID := Some("xsbti"),
- watchSources <++= apiDefinitions.identity,
+ watchSources <++= apiDefinitions,
resourceGenerators in Compile <+= (version, resourceManaged, streams) map generateVersionFile,
apiDefinitions <<= baseDirectory map { base => (base / "definition") :: (base / "other") :: (base / "type") :: Nil },
sourceGenerators in Compile <+= (cacheDirectory, apiDefinitions, fullClasspath in Compile in datatypeSub, sourceManaged in Compile, mainClass in datatypeSub in Compile, runner, streams) map generateAPICached
View
4 project/Transform.scala
@@ -20,7 +20,7 @@ object Transform
transformResources <<= (fileMappings in transformResources, resourceProperties) map { (rs, props) =>
rs map { case (in, out) => transform(in, out, props) }
},
- resourceGenerators <+= transformResources.identity
+ resourceGenerators <+= transformResources
)
def transformMappings = (inputResources, inputResourceDirectories, resourceManaged) map { (rs, rdirs, rm) =>
(rs --- rdirs) x (rebase(rdirs, rm)|flat(rm)) toSeq
@@ -46,4 +46,4 @@ object Transform
lazy val Snapshots = typesafeRepository("snapshots")
def typesafeRepository(status: String) =
""" typesafe-ivy-%s: http://repo.typesafe.com/typesafe/ivy-%<s/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]""" format status
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.