malliina / sbt-play   1.8.0

GitHub

SBT plugin for Play Framework

Scala versions: 2.12
sbt plugins: 1.0

Build Status Sponsored

sbt-play

This SBT plugin helps create Play Framework projects. Common dependencies I find useful are added by default, avoiding repetition in build files. The packageBin task will furthermore deviate from the default and package assets into the resulting jar.

Features

  • Custom release process
  • Predefined buildinfo settings
  • Support for running the app as an OS service (via sbt-native-packager)

Installation

addSbtPlugin("com.malliina" % "sbt-play" % "1.7.5")

Usage

Enable one of the available plugins:

  • PlayLinuxPlugin
  • PlayDefaultPlugin

Web apps packaged as Systemd services:

val linuxWebsite = Project("mywebsite", file("."))
  .enablePlugins(PlayLinuxPlugin)

Libraries:

val playLibrary = Project("mywebsite", file("."))
  .enablePlugins(PlayDefaultPlugin)