diff --git a/sbt-pgp/src/main/scala-sbt-0.13/Compat.scala b/sbt-pgp/src/main/scala-sbt-0.13/Compat.scala deleted file mode 100644 index cf70ab2..0000000 --- a/sbt-pgp/src/main/scala-sbt-0.13/Compat.scala +++ /dev/null @@ -1,75 +0,0 @@ -package sbt -package sbtpgp - -import Keys._ -import scala.language.implicitConversions - -object Compat { - type PublishConfiguration = sbt.PublishConfiguration - val defaultProgress = EvaluateTask.defaultProgress - val interactionService = InteractionServiceKeys.interactionService - val CommandLineUIServices = sbt.plugins.CommandLineUIServices - - def pgpRequires: Plugins = sbt.plugins.IvyPlugin && sbt.plugins.InteractionServicePlugin - - def subConfiguration(m: ModuleID, confs: Boolean): ModuleID = - m.copy(configurations = if (confs) m.configurations else None) - - def subExplicitArtifacts(m: ModuleID, artifacts: Vector[Artifact]): ModuleID = - m.copy(explicitArtifacts = artifacts) - - def subExtension(art: Artifact, ext: String): Artifact = - art.copy(extension = ext) - - def subMissingOk(c: UpdateConfiguration, ok: Boolean): UpdateConfiguration = - c.copy(missingOk = ok) - - def mkInlineConfiguration( - base: ModuleID, - deps: Vector[ModuleID], - ivyScala: Option[IvyScala], - confs: Vector[Configuration] - ): InlineConfiguration = - InlineConfiguration(base, ModuleInfo(base.name), deps).copy(ivyScala = ivyScala, configurations = confs) - - implicit def log2ProcessLogger(log: Logger): sys.process.ProcessLogger = - new BufferedLogger(new FullLogger(log)) with sys.process.ProcessLogger { - def err(s: => String): Unit = error(s) - def out(s: => String): Unit = info(s) - } - - def updateEither( - module: IvySbt#Module, - configuration: UpdateConfiguration, - uwconfig: UnresolvedWarningConfiguration, - logicalClock: LogicalClock, - depDir: Option[File], - log: Logger - ): Either[UnresolvedWarning, UpdateReport] = - IvyActions.updateEither(module, configuration, uwconfig, logicalClock, depDir, log) - - private[this] val signedArtifacts = TaskKey[Map[Artifact, File]]( - "signed-artifacts", - "Packages all artifacts for publishing and maps the Artifact definition to the generated file." - ) - private[this] val pgpMakeIvy = TaskKey[Option[File]]("pgpMakeIvy", "Generates the Ivy file.") - - def publishSignedConfigurationTask = Def.task { - Classpaths.publishConfig( - signedArtifacts.value, - pgpMakeIvy.value, - resolverName = Classpaths.getPublishTo(publishTo.value).name, - checksums = (checksums in publish).value, - logging = ivyLoggingLevel.value - ) - } - - def publishLocalSignedConfigurationTask = Def.task { - Classpaths.publishConfig( - signedArtifacts.value, - Some(deliverLocal.value), - (checksums in publishLocal).value, - logging = ivyLoggingLevel.value - ) - } -}