Fork me on GitHub

A Lightweight Web Framework

Spark Framework is a true micro Java web framework. Its total size is less than a megabyte, and to keep it lean and clean we decided to cut support for Java 7 in Spark 2. If you are stuck with Java 7 for whatever reason, you unfortunately have to have to use Spark 1.

Download Spark Framework

Spark Framework is available both on Maven Central and GitHub.

Maven Users

Add the following snippet to your POM:

Not familiar with Maven? Click here for more detailed instructions.

Other dependency managers:

Gradle : compile "com.sparkjava:spark-core:2.5" //add to build.gradle
   Ivy : <dependency org="com.sparkjava" name="spark-core" rev="2.5" conf="build" /> //ivy.xml
   SBT : libraryDependencies += "com.sparkjava" % "spark-core" % "2.5" //build.sbt

Non-maven Users

Clone the repo from GitHub,
If you really want to, you can also download Spark Framework as a ZIP (from GitHub)