publish less useless artifacts
This commit is contained in:
parent
eca9deb341
commit
4b2e773fd2
|
@ -82,12 +82,10 @@ RSYNC_OPTIONS=" \
|
|||
--checksum \
|
||||
--verbose \
|
||||
--exclude conf/application.conf \
|
||||
--exclude logs \
|
||||
--exclude RUNNING_PID \
|
||||
--exclude bin/.translate_version \
|
||||
--exclude local \
|
||||
--exclude '*.psd' \
|
||||
--exclude lib/lila.lila-0.1-SNAPSHOT-assets.jar";
|
||||
--exclude '.git/' \
|
||||
--exclude bin/.translate_version"
|
||||
|
||||
if [ $mode != "main" ]; then
|
||||
RSYNC_OPTIONS="$RSYNC_OPTIONS \
|
||||
|
@ -96,7 +94,7 @@ fi
|
|||
|
||||
lilalog "Rsync scripts, binaries and assets"
|
||||
stage="target/universal/stage"
|
||||
include="bin $stage/bin $stage/lib $stage/conf public submodules"
|
||||
include="bin $stage/bin $stage/lib public submodules"
|
||||
rsync_command="rsync $RSYNC_OPTIONS $include $REMOTE:$REMOTE_DIR"
|
||||
echo "$rsync_command"
|
||||
$rsync_command
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import com.typesafe.sbt.web.SbtWeb.autoImport._
|
||||
import play.Play.autoImport._
|
||||
import play.sbt.PlayImport._
|
||||
import play.twirl.sbt.Import._
|
||||
|
@ -16,6 +17,12 @@ object ApplicationBuild extends Build {
|
|||
incOptions := incOptions.value.withNameHashing(true),
|
||||
updateOptions := updateOptions.value.withCachedResolution(true),
|
||||
sources in doc in Compile := List(),
|
||||
// disable publishing the main API jar
|
||||
publishArtifact in (Compile, packageDoc) := false,
|
||||
// disable publishing the main sources jar
|
||||
publishArtifact in (Compile, packageSrc) := false,
|
||||
// don't stage the conf dir
|
||||
externalizeResources := false,
|
||||
// offline := true,
|
||||
libraryDependencies ++= Seq(
|
||||
scalaz, scalalib, hasher, config, apache,
|
||||
|
@ -29,9 +36,11 @@ object ApplicationBuild extends Build {
|
|||
"lila.app.templating.Environment._",
|
||||
"lila.api.Context",
|
||||
"lila.common.paginator.Paginator"),
|
||||
watchSources := (watchSources.value
|
||||
--- baseDirectory.value / "public" ** "*"
|
||||
).get
|
||||
watchSources <<= sourceDirectory in Compile map { sources =>
|
||||
(sources ** "*").get
|
||||
},
|
||||
// trump sbt-web into not looking at public/
|
||||
resourceDirectory in Assets := (sourceDirectory in Compile).value / "assets"
|
||||
) dependsOn api aggregate api
|
||||
|
||||
lazy val modules = Seq(
|
||||
|
|
Loading…
Reference in a new issue