0

在这个 maven repo 中,我想使用 _jdk8 分类。

但是当我使用像这样声明的 gradle 依赖项时:

compile('net.sf.jt400:jt400:9.5:jdk8')  

它试图获取这样的文件:
https ://repo.maven.apache.org/maven2/net/sf/jt400/jt400/9.5/jt400-9.5-jdk8.jar

所以它在分类中使用破折号而不是像他们在回购中使用的子分数,有谁知道如何让它使用子分数?

错误:

* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not find jt400-jdk8.jar (net.sf.jt400:jt400:9.5).
  Searched in the following locations:
4

1 回答 1

0

我在存储库中读错了名称:

分类应该jt400_jdk8不仅jdk8意味着有效的依赖注入将是:
compile('net.sf.jt400:jt400:9.5:jt400_jdk8')

于 2018-08-16T08:32:41.083 回答