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.
Add the following snippet to your POM:
<dependency> <groupId>com.sparkjava</groupId> <artifactId>spark-core</artifactId> <version>2.5</version> </dependency>
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
Clone the repo from GitHub,
If you really want to, you can also download Spark Framework as a ZIP (from GitHub)