首先按照正常理解添加:
"net.sf.json-lib" % "json-lib" % "2.4"
这样play dependencies 之后报错:
sbt.ResolveException: download Failed: net.sf.json-lib#json-lib;2.4!json-lib.jar
Google之后返现net.sf.json-lib需要添加classifier,
这是maven的:
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
</dependency>
play 2的;
"net.sf.json-lib" % "json-lib" % "2.4" classifier "jdk15"