Skip to content

skinny-framework/sbt-servlet-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbt-servlet-plugin

This is a sbt plugin which is based on xsbt-web-plugin 0.9.1. The reason why we forked the sbt plugin is that the version allowed us to reload Scalate templates without restarting a Servlet container every time a user changes them a bit.

Build Status

Getting started

project/plugins.sbt

Add this sbt plugin to your project/plugins.sbt.

addSbtPlugin("org.skinny-framework" % "sbt-servlet-plugin" % "3.0.11")

build.sbt

Add Jetty dependencies into "container" scope.

import skinny.servlet._, ServletPlugin._, ServletKeys._

lazy val jettyVersion = "9.4.45.v20220203"

lazy val root = (project in file("."))
  .settings(ServletPlugin.projectSettings)
  .settings(
    libraryDependencies ++= Seq(
      "org.eclipse.jetty" % "jetty-webapp"      % jettyVersion % "container",
      "org.eclipse.jetty" % "jetty-plus"        % jettyVersion % "container",
      "javax.servlet"     % "javax.servlet-api" % "3.1.0"      % "provided"
    )
  )
  .enablePlugins(ServletPlugin)

Development

Run tests for this sbt plugin

sbt scripted

Publish new versions

https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html

sbt publishSigned sonatypeRelease

License

the BSD 3-Clause license

About

🔧 an sbt plugin to build and run Servlet apps

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 99.7%
  • Java 0.3%