paoloboni / sbt-distributables

SBT plugin to create and publish tgz artifacts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sbt-distributables

Join the chat at https://gitter.im/hmrc/sbt-distributables Apache-2.0 license Build Status Download Stories in Ready

An SBT plugin to create then publish .tgz artifacts

Usage

In your project/plugins.sbt file:

resolvers += Resolver.url("hmrc-sbt-plugin-releases",
  url("https://dl.bintray.com/hmrc/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

addSbtPlugin("uk.gov.hmrc" % "sbt-distributables" % "x.x.x")

where 'x.x.x' is the latest release as advertised above.

In your project/FrontendBuild.scala or project/MicroserviceBuild.scala

  1. Add the line .enablePlugins(SbtDistributablesPlugin) to enable artifact creation
  2. Add the line .settings(SbtDistributablePlugin.publisherSettings) to enable artifact publication

What it does

When enabled sbt-distributables automatically creates and publishes a .tgz artifact. For an artifact tester with version 1.0.0 this would result in the following:

tester-1.0.0.tgz
  .
    tester-1.0.0
      bin
      conf
      lib
      share
      README.md
    Procfile
    start-docker.sh
    system.properties

system.properties will specify a java.runtime.version derived from the scalacOptions setting in SBT.

About

SBT plugin to create and publish tgz artifacts

License:Apache License 2.0


Languages

Language:Scala 100.0%