Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Update build #173

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
88 changes: 88 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
//import com.typesafe.sbt.web.SbtWeb
// import org.sbtidea.SbtIdeaPlugin._
// import play.twirl.sbt.Import.TwirlKeys
//import play.twirl.sbt.SbtTwirl
// import sbt.Keys._
// import sbt.{ExclusionRule, _}

import play.Project._

lazy val main = (project in file("."))
//.enablePlugins(PlayScala)
//.enablePlugins(SbtWeb)
.enablePlugins(SbtTwirl)
.settings(
description := "LDP implementation in Play",
organization := "bblfish.net",
version := "0.7.4-SNAPSHOT",
scalaVersion := "2.11.7",
// crossScalaVersions := Seq("2.11.2", "2.10.4"),
javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
Keys.fork := false,
parallelExecution in Test := false,
offline := true,
// TODO
testOptions in Test += Tests.Argument("-oDS"),
scalacOptions ++= Seq("-deprecation", "-unchecked", "-optimize", "-feature", "-language:implicitConversions,higherKinds", "-Xmax-classfile-name", "140", "-Yinline-warnings"),
scalacOptions in(Compile, doc) := Seq("-groups", "-implicits"),

startYear := Some(2012),
// resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
// resolvers += "Typesafe Snapshots" at "http://repo.typesafe.com/typesafe/snapshots/",
// resolvers += "Sonatype OSS Releases" at "http://oss.sonatype.org/content/repositories/releases/",
// resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
// resolvers += "Apache snapshots" at "https://repository.apache.org/content/repositories/snapshots",
resolvers += "bblfish-snapshots" at "https://bblfish.net/work/repo/snapshots/",
resolvers += "bblfish.net repository" at "https://bblfish.net/work/repo/releases/",
resolvers += "sesame-repo-releases" at "http://maven.ontotext.com/content/repositories/aduna/",
sourceDirectories in(Compile, TwirlKeys.compileTemplates) := (unmanagedSourceDirectories in Compile).value,
initialize := {
//thanks to http://stackoverflow.com/questions/19208942/enforcing-java-version-for-scala-project-in-sbt/19271814?noredirect=1#19271814
val _ = initialize.value // run the previous initialization
val specVersion = sys.props("java.specification.version")
assert(java.lang.Float.parseFloat(specVersion) >= 1.8f, "Java 1.8 or above required. Your version is " + specVersion)
},

playScalaSettings,

libraryDependencies ++=
Seq("sesame", "jena", "plantain_jvm", "ntriples_jvm").map(banana) ++
Seq(
akkaHttpCore,
"net.rootdev" % "java-rdfa" % "0.4.2-RC2",
"nu.validator.htmlparser" % "htmlparser" % "1.2.1",
"org.scalaz" %% "scalaz-core" % "7.0.1", // from "http://repo.typesafe.com/typesafe/releases/org/scalaz/scalaz-core_2.10.0-M6/7.0.0-M2/scalaz-core_2.10.0-M6-7.0.0-M2.jar"
"org.bouncycastle" % "bcprov-jdk15on" % "1.51",
"org.bouncycastle" % "bcpkix-jdk15on" % "1.51",
"net.sf.uadetector" % "uadetector-resources" % "2014.01",
playTLS("play-iteratees"),
playTLS("play-ws"),
scalatest,
// https://code.google.com/p/guava-libraries/
"com.google.guava" % "guava" % "16.0.1",
"com.google.code.findbugs" % "jsr305" % "2.0.2",
"com.typesafe.play" %% "play-mailer" % "2.4.1",
"com.typesafe.scala-logging" %% "scala-logging-slf4j" % "2.1.2" ,
// https://bitbucket.org/inkytonik/kiama/
"com.googlecode.kiama" %% "kiama" % "1.8.0"
)
)

val banana = (name: String) => "org.w3" %% name % "0.7.2-SNAPSHOT" excludeAll (ExclusionRule(organization = "org.scala-stm"))
val semargl = (name: String) => "org.semarglproject" % {"semargl-"+name} % "0.6.1"
//see http://bblfish.net/work/repo
val playTLS = (name: String) => "com.typesafe.play" %% name % "2.3.11-TLS"
val scalatest = "org.scalatest" %% "scalatest" % "2.2.4" % "test"
// val scalaActors = "org.scala-lang" % "scala-actors" % "2.10.2"


/**
* @see http://repo1.maven.org/maven2/com/typesafe/akka/akka-http-core-experimental_2.10/
*/
val akkaHttpCore = "com.typesafe.akka" %% "akka-http-core-experimental" % "1.0"

val testsuiteDeps =
Seq(
// scalaActors,
scalatest
)
101 changes: 0 additions & 101 deletions project/Build.scala

This file was deleted.

2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.13.9
sbt.version=0.13.17
15 changes: 10 additions & 5 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
// Comment to get more information during initialization
logLevel := Level.Warn

scalaVersion := "2.10.4"
//scalaVersion := "2.10.4"

// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/"

// The bblfish.net repository
resolvers += "bblfish.net repository" at "http://bblfish.net/work/repo/releases/"
resolvers += "bblfish.net repository" at "https://bblfish.net/work/repo/ivy/releases/"

resolvers += Resolver.url("bblfish ivy repository",url("http://bblfish.net/work/repo/ivy/releases/"))(Resolver.ivyStylePatterns)
//resolvers += Resolver.url("bblfish ivy repository",url("http://bblfish.net/work/repo/ivy/releases/"))(Resolver.ivyStylePatterns)

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.11-TLS")
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.3")
//addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.11-TLS")
// lazy val root = project.in(file(".")).dependsOn(playPlugin)
// lazy val playPlugin = uri("https://github.com/bblfish/Play20.git#FlexiTLS")

addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.3.15")

//resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"

Expand Down