Created
December 5, 2011 20:00
-
-
Save gseitz/1435106 to your computer and use it in GitHub Desktop.
SBT resource handling for wicket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
//import com.github.siasia.WebPlugin | |
object BuildSettings { | |
// generic filter settings, need to be applied for Compile and Test | |
def wicketResourceSettings(config: Configuration) = inConfig(config)(Seq[Setting[_]]( | |
excludeFilter in unmanagedResources := ("*.java"), | |
unmanagedResourceDirectories <++= (unmanagedSourceDirectories) apply (identity) | |
)) | |
// also mixed in Defaults.defaultSettings | |
lazy val basicSettings = Defaults.defaultSettings ++ Seq[Setting[_]]( | |
organization := "org.apache.wicket", | |
version := "6.0", | |
description := "Apache Wicket [description]", | |
scalaVersion := "2.9.1", | |
resolvers ++= Dependencies.resolutionRepos | |
) ++ wicketResourceSettings(Compile) ++ wicketResourceSettings(Test) | |
lazy val moduleSettings = basicSettings ++ Seq( | |
pomExtra := ( | |
<url>http://spray.cc/</url> | |
<inceptionYear>2011</inceptionYear> | |
<licenses> | |
<license> | |
<name>Apache 2</name> | |
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | |
<distribution>repo</distribution> | |
</license> | |
</licenses> | |
<developers> | |
<developer> | |
<id>sirthias</id> | |
<name>Mathias Doenitz</name> | |
<timezone>+1</timezone> | |
<email>mathias [at] spray.cc</email> | |
</developer> | |
</developers> | |
<scm> | |
<url>http://github.com/spray/</url> | |
</scm> | |
) | |
) | |
lazy val noPublishing = Seq( | |
publish := (), | |
publishLocal := () | |
) | |
lazy val exampleSettings = basicSettings ++ noPublishing | |
// lazy val jettyExampleSettings = exampleSettings ++ WebPlugin.webSettings | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment