name := "deadbolt-java"

lazy val root = (project in file(".")).enablePlugins(PlayJava).disablePlugins(PlayFilters)

scalaVersion := "2.12.7"

crossScalaVersions := Seq("2.12.7", "2.13.0-M5")

organization := "be.objectify"

libraryDependencies ++= Seq(
  "org.mockito" % "mockito-all" % "1.10.19" % "test",
  "org.awaitility" % "awaitility" % "3.0.0" % "test"
)

releasePublishArtifactsAction := PgpKeys.publishSigned.value

// workaround for scaladoc error https://github.com/scala/scala-dev/issues/249
// also see http://www.scala-lang.org/news/2.12.0/#scaladoc-can-be-used-to-document-java-sources
scalacOptions in (Compile, doc) ++= {
  if (scalaBinaryVersion.value == "2.12") Seq("-no-java-comments") else Nil
}

javacOptions += "-Xlint:deprecation"
scalacOptions += "-deprecation"

resolvers += Resolver.sonatypeRepo("snapshots")

name := "deadbolt-java"

lazy val root = (project in file(".")).enablePlugins(PlayJava).disablePlugins(PlayFilters)

scalaVersion := "2.12.7"

crossScalaVersions := Seq("2.12.7", "2.13.0-M5")

organization := "be.objectify"

libraryDependencies ++= Seq(
  "org.mockito" % "mockito-all" % "1.10.19" % "test",
  "org.awaitility" % "awaitility" % "3.0.0" % "test"
)

releasePublishArtifactsAction := PgpKeys.publishSigned.value

// workaround for scaladoc error https://github.com/scala/scala-dev/issues/249
// also see http://www.scala-lang.org/news/2.12.0/#scaladoc-can-be-used-to-document-java-sources
scalacOptions in (Compile, doc) += "-no-java-comments"

javacOptions += "-Xlint:deprecation"
scalacOptions += "-deprecation"

resolvers += Resolver.sonatypeRepo("snapshots")

--- 
+++ 
@@ -17,7 +17,9 @@
 
 // workaround for scaladoc error https://github.com/scala/scala-dev/issues/249
 // also see http://www.scala-lang.org/news/2.12.0/#scaladoc-can-be-used-to-document-java-sources
-scalacOptions in (Compile, doc) += "-no-java-comments"
+scalacOptions in (Compile, doc) ++= {
+  if (scalaBinaryVersion.value == "2.12") Seq("-no-java-comments") else Nil
+}
 
 javacOptions += "-Xlint:deprecation"
 scalacOptions += "-deprecation"
Revert "Change scala bug workaround to work with Scala 2.13"

This reverts commit adb3d5b5cdf697fe01adc843b5c0df4384eb67d1.
