Skip to content

Commit

Permalink
native builds
Browse files Browse the repository at this point in the history
  • Loading branch information
intracer committed Jul 1, 2016
1 parent dd1a638 commit f34506d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 41 deletions.
72 changes: 34 additions & 38 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,54 +1,50 @@
lazy val root = (project in file (".") )
.enablePlugins (PlayScala, RpmPlugin, DebianPlugin, UpstartPlugin)

name := "wlxjury"

version := "1.0-SNAPSHOT"
organization := "org.intracer"

version := "0.8"

//rpmRelease := "1"
//
//rpmVendor := "typesafe"
//
//rpmUrl := Some("http://github.com/paulp/sbt-extras")
//
//rpmLicense := Some("GPL")
//
//packageSummary := "WLX Jury Tool is an image selection and rating tool for Wiki Loves Monuments and Wiki Loves Earth contests"
//
//packageDescription :=
// """On gallery page jurors or organizing committee can browse the images, see the rating or selection status of each image, open large image view page.
// |
// |Images can be filtered by their status - unrated, and selected or rejected in selection rounds or rated in rating rounds.
// |
// |In rating rounds images are sorted by their rating.
// |
// |Organizing committee can see the votes of each juror separately or the overall rating of all jurors together.
// |
// |In large image view there is vertical ribbon of image thumbnails on the left and large currently viewed image on the right.
// |
// |User can go backward or forward with navigation buttons or arrow keys on the keyboard, or can click the thumbnails in the ribbon
// |
// |Juror can select, reject or rate the currently viewed image.
// |
// |Juror can also comment the image and see other jurors comments.
// |
// |Organizing committee can see the ratings and comments given by all jurors to the image.
// |
// |From large image view one can return to gallery view, visit image page on commons by clicking the large image, or open full resolution version of the image. Caption of the full resolution image version link shows image resolution.
// """.stripMargin
//
//maintainer := "Ilya Korniiko <[email protected]>"

rpmVendor := "intracer"

rpmUrl := Some("https://github.com/intracer/wlxjury")

rpmLicense := Some("ASL 2.0")

packageSummary := "WLX Jury Tool is an image selection and rating tool for Wiki Loves Monuments and Wiki Loves Earth contests"

packageDescription :=
"""On gallery page jurors or organizing committee can browse the images, see the rating or selection status of each image, open large image view page.
|Images can be filtered by their status - unrated, and selected or rejected in selection rounds or rated in rating rounds.
|In rating rounds images are sorted by their rating.
|Organizing committee can see the votes of each juror separately or the overall rating of all jurors together.
|In large image view there is vertical ribbon of image thumbnails on the left and large currently viewed image on the right.
|User can go backward or forward with navigation buttons or arrow keys on the keyboard, or can click the thumbnails in the ribbon
|Juror can select, reject or rate the currently viewed image.
|Juror can also comment the image and see other jurors comments.
|Organizing committee can see the ratings and comments given by all jurors to the image.
|From large image view one can return to gallery view, visit image page on commons by clicking the large image, or open full resolution version of the image. Caption of the full resolution image version link shows image resolution.
""".stripMargin.replace('\n', ' ')

maintainer := "Ilya Korniiko <[email protected]>"

debianPackageDependencies in Debian ++= Seq("java8-runtime")

debianPackageRecommends in Debian ++= Seq("virtual-mysql-server")

scalaVersion := "2.11.8"

val scalikejdbcVersion = "2.2.9"
val scalikejdbcPlayVersion = "2.4.3"

//resolvers += Resolver.url("Intracer bintray", url("http://dl.bintray.com/intracer/maven"))

resolvers += Resolver.bintrayRepo("intracer", "maven")

resolvers += "scalaz-bintray" at "https://dl.bintray.com/scalaz/releases"

//routesGenerator := InjectedRoutesGenerator

libraryDependencies ++= Seq(
"org.webjars" %% "webjars-play" % "2.4.0",
"com.adrianhurt" %% "play-bootstrap" % "1.0-P24-B3",
Expand All @@ -70,7 +66,7 @@ libraryDependencies ++= Seq(
"org.scalamock" %% "scalamock-scalatest-support" % "3.2" % "test"
)

lazy val root = (project in file (".") ).enablePlugins (PlayScala)

//lazy val root = (project in file(".")).enablePlugins(PlayScala, DeploySSH).settings(
// deployHomeConfigFiles ++= Seq("wm/wmua.conf"),
// // deployConfigs ++= Seq(
Expand Down
6 changes: 3 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ logLevel := Level.Warn

// The Typesafe repository
resolvers ++= Seq("typesafe" at "http://repo.typesafe.com/typesafe/releases/",
Resolver.file("file", new File(Path.userHome.absolutePath+"/.ivy2/local/")),
"Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases"
Resolver.file("file", new File(Path.userHome.absolutePath + "/.ivy2/local/")),
"Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases"
)

// The Sonatype snapshots repository
Expand All @@ -26,7 +26,7 @@ addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.5")

//addSbtPlugin("com.github.shmishleniy" % "sbt-deploy-ssh" % "0.1.1")

addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.8.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.2.0-M2")

addSbtPlugin("org.ensime" % "ensime-sbt" % "0.1.6")

Expand Down

0 comments on commit f34506d

Please sign in to comment.