pyc-website

main website for pyc inc.

git clone https://9o.is/git/pyc-website.git

commit 852e8a94a7ce69885b4a34b7b0d2d53b3452c725
parent 7ef280c148d1a03a5a5cb73c3f42e3aded965ebe
Author: Jul <jul@9o.is>
Date:   Mon, 21 Apr 2014 16:08:32 -0400

publish war files in s3 (sbt plugin)

Diffstat:
Aproject/.s3credentials | 3+++
Mproject/BuildSettings.scala | 16+++++++++++++++-
Mproject/plugins.sbt | 8++++++--
3 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/project/.s3credentials b/project/.s3credentials @@ -0,0 +1,2 @@ +accessKey = AKIAJ6DSDEZEPLUOHADQ +secretKey = 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 +\ No newline at end of file diff --git a/project/BuildSettings.scala b/project/BuildSettings.scala @@ -5,6 +5,7 @@ import com.earldouglas.xsbtwebplugin.WebPlugin.{container, webSettings} import com.earldouglas.xsbtwebplugin.PluginKeys._ import sbtbuildinfo.Plugin._ import com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseKeys +import ohnosequences.sbt.SbtS3Resolver._ object BuildSettings { object Ver { @@ -70,6 +71,7 @@ object BuildSettings { basicSettings ++ gruntSettings ++ webSettings ++ + S3Resolver.defaults ++ buildInfoSettings ++ seq( buildTime := System.currentTimeMillis.toString, @@ -106,7 +108,19 @@ object BuildSettings { // copy the minified assets IO.copyDirectory(gdist, webapp) } - } + }, + + publishMavenStyle := false, + + publishTo := Some(s3resolver.value( + "My "+{if (isSnapshot.value) "snapshots-pyc-inc" else "releases-pyc-inc"}+" S3 bucket", + s3(if (isSnapshot.value) "snapshots-pyc-inc" else "releasespyc-inc"+".pyc.inc")) withIvyPatterns), + + s3credentials := { + file(".") / "project" / ".s3credentials" + }, + + s3region := com.amazonaws.services.s3.model.Region.US_Standard ) lazy val noPublishing = seq( diff --git a/project/plugins.sbt b/project/plugins.sbt @@ -5,8 +5,12 @@ resolvers += Resolver.url( resolvers += "softprops-maven" at "http://dl.bintray.com/content/softprops/maven" +resolvers += "Era7 maven releases" at "http://releases.era7.com.s3.amazonaws.com" + addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.2.5") addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.4.2") -addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0") -\ No newline at end of file +addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0") + +addSbtPlugin("ohnosequences" % "sbt-s3-resolver" % "0.10.1") +\ No newline at end of file