otrebski / sbt-flaky

Detect flaky tests with sbt
Apache License 2.0
37 stars 7 forks source link

build.sbt file fails loading under 0.14 #53

Closed kubukoz closed 4 years ago

kubukoz commented 6 years ago

I added addSbtPlugin("pl.otrebski" % "sbt-flaky" % "0.14") to my global plugins.

sbt version: 1.1.5

error:

/Users/kubukoz/IdeaProjects/redacted/build.sbt:54: error: value / is not a member of sbt.librarymanagement.Configuration
  (Test / fork) := true
        ^
/Users/kubukoz/IdeaProjects/redacted/build.sbt:127: error: value / is not a member of sbt.Configuration
    Docker / packageName := "kubukoz/redacted",
           ^
[error] sbt.compiler.EvalException: Type error in expression
[error] sbt.compiler.EvalException: Type error in expression

Docker comes from sbt-native-packager with enablePlugins(JavaAppPackaging), version 1.3.4.

Removing sbt-flaky causes the issues to disappear.

Let me know if you need more info to reproduce :)

kubukoz commented 6 years ago

Note: the same happens if the plugin is added directly to the project. Also, I'm getting some binary compat warnings from sbt:

[warn]  * io.circe:circe-parser_2.12:0.9.3 is selected over 0.8.0
[warn]      +- ch.epfl.scala:bloop-config_2.12:1.0.0-M11          (depends on 0.9.3)
[warn]      +- pl.otrebski:sbt-flaky:0.14 (scalaVersion=2.12, sbtVersion=1.0) (depends on 0.8.0)
[warn]  * org.spire-math:jawn-parser_2.12:0.11.1 is selected over 0.10.4
[warn]  * io.circe:circe-core_2.12:0.9.3 is selected over 0.8.0
[warn]      +- io.circe:circe-derivation_2.12:0.9.0-M3 ()         (depends on 0.9.3)
[warn]      +- io.circe:circe-jawn_2.12:0.9.3 ()                  (depends on 0.9.3)
[warn]      +- io.circe:circe-parser_2.12:0.9.3 ()                (depends on 0.9.3)
[warn]      +- pl.otrebski:sbt-flaky:0.14 (scalaVersion=2.12, sbtVersion=1.0) (depends on 0.8.0)
[warn]      +- io.circe:circe-generic_2.12:0.8.0 ()               (depends on 0.8.0)
Asmau1234 commented 4 years ago

I wonder if you were able to resolve this issue?