Correct mvn version for dispatch.databinder.net

2019-07-20 14:44发布

The last version of the library dispatch.databinder.net is 0.9.5, according to the website.

What is the correct mvn dependency?

<dependency>
  <groupId>net.databinder.dispatch</groupId>
  <artifactId>core_2.10</artifactId>
  <version>0.9.1</version>
</dependency>

or

<dependency>
  <groupId>net.databinder.dispatch</groupId>
  <artifactId>dispatch-core_2.10</artifactId>
  <version>0.9.5</version>
</dependency>

or something else?

and how to find out this in general?

1条回答
姐就是有狂的资本
2楼-- · 2019-07-20 15:19

Since the website says

libraryDependencies += "net.databinder.dispatch" %% "dispatch-core" % "0.9.5"

The corresponding maven notation for Scala 2.10.x should be:

<dependency>
  <groupId>net.databinder.dispatch</groupId>
  <artifactId>dispatch-core_2.10</artifactId>
  <version>0.9.5</version>
</dependency>

Starting sbt 0.12.0, the Scala version postfix got shortened to _2.10 for Scala 2.10.x and above to take advantage of binary compatibilities between minor releases of Scala.

查看更多
登录 后发表回答