ctf-server

old server for hosting capture-the-flag

git clone https://9o.is/git/ctf-server.git

build.sbt

(1507B)


      1 name := "FLAG_SERVER"
      2 
      3 version := "0.3"
      4 
      5 organization := "com.jcabrra"
      6 
      7 scalaVersion := "2.10.0"
      8 
      9 seq(webSettings :_*)
     10 
     11 resolvers ++= Seq("snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
     12                   "releases"  at "http://oss.sonatype.org/content/repositories/releases")
     13 
     14 libraryDependencies ++= {
     15 val liftVersion = "2.5-RC2"
     16   Seq(
     17   "net.liftweb"       %% "lift-webkit"           % liftVersion       % "compile",
     18   "net.liftweb"       %% "lift-mapper"           % liftVersion       % "compile",
     19   "net.liftmodules"   %% "extras_2.5"            % "0.1"             % "compile",
     20   "org.specs2"        %% "specs2"                % "1.14"            % "test",
     21   "org.eclipse.jetty" % "jetty-webapp"           % "8.0.1.v20110908" % "container",
     22   "com.h2database"    % "h2"                     % "1.2.138",
     23   "org.mindrot"       % "jbcrypt"                % "0.3m"            % "compile",
     24   "ch.qos.logback"    % "logback-classic"        % "0.9.26"
     25   )
     26 }
     27 
     28 
     29 
     30 // append -deprecation to the options passed to the Scala compiler
     31 scalacOptions += "-deprecation"
     32 
     33 scalacOptions += "-feature"
     34 
     35 // less
     36 seq(lessSettings:_*)
     37 
     38 (LessKeys.filter in (Compile, LessKeys.less)) := "*styles.less"
     39 
     40 (LessKeys.mini in (Compile, LessKeys.less)) := true
     41 
     42 // closure
     43 seq(closureSettings:_*)
     44 
     45 (ClosureKeys.prettyPrint in (Compile, ClosureKeys.closure)) := false
     46 
     47 // add managed resources, where less and closure publish to, to the webapp
     48 (webappResources in Compile) <+= (resourceManaged in Compile)
     49 
     50