diff options
author | Jakob Odersky <jakob@odersky.com> | 2016-06-05 21:52:43 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2016-06-07 17:10:52 -0700 |
commit | 480f4b09a1a222368609771086176caabc6aad28 (patch) | |
tree | 0a70b8cefb11a011d04effd51417452823a6c395 /project/Bintray.scala.notyet | |
parent | eac9a5ba8fbaebb43e38256630201c6f03f4debf (diff) | |
download | akka-serial-480f4b09a1a222368609771086176caabc6aad28.tar.gz akka-serial-480f4b09a1a222368609771086176caabc6aad28.tar.bz2 akka-serial-480f4b09a1a222368609771086176caabc6aad28.zip |
Generate documentation
Diffstat (limited to 'project/Bintray.scala.notyet')
-rw-r--r-- | project/Bintray.scala.notyet | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/project/Bintray.scala.notyet b/project/Bintray.scala.notyet deleted file mode 100644 index 5ed9953..0000000 --- a/project/Bintray.scala.notyet +++ /dev/null @@ -1,68 +0,0 @@ -package flow - -import sbt._ -import sbt.Keys._ -import ch.jodersky.sbt.jni.plugins.JniPackaging -import ch.jodersky.sbt.jni.plugins.JniPackaging.autoImport._ -import bintray._ -import bintray.BintrayPlugin.autoImport._ - -/** Custom bintray tasks. */ -object CustomBintray extends AutoPlugin { - - override def requires = JniPackaging && BintrayPlugin - override def trigger = allRequirements - - object autoImport { - - val unmanagedNativeZip = taskKey[File]( - "Packages unmanaged native libraries in a zip file." - ) - - val publishNativeZip = taskKey[Unit]( - "Signs and publishes native zip files to a generic bintray repository." - ) - - } - import autoImport._ - - lazy val settings: Seq[Setting[_]] = Seq( - - unmanagedNativeZip := { - val out = target.value / (name.value + "-native.zip") - - val files: Seq[File] = unmanagedNativeDirectories.value flatMap {dir => - (dir ** "*").get.filter(_.isFile) - } - val baseDirectories: Seq[File] = unmanagedNativeDirectories.value - - val mappings: Seq[(File,String)] = files pair Path.relativeTo(baseDirectories) - - IO.zip(mappings, out) - out - }, - - - publishNativeZip := { - val credsFile = bintrayCredentialsFile.value - val btyOrg = bintrayOrganization.value - val repoName = "generic" - - val zip = unmanagedNativeZip.value - - Bintray.withRepo(credsFile, btyOrg, repoName, prompt = false) { repo => - repo.upload( - "flow", - version.value, - zip.name, - zip, - streams.value.log - ) - } - } - - ) - - override def projectSettings = inConfig(Compile)(settings) - -} |