如何指定以&#39; <version> -bin.exe&#39;结尾的依赖项?在gradle?

时间:2016-08-18 11:00:09

标签: gradle build.gradle

我如何得到 来自以下仓库的 winsw-1.19-bin.exe

repositories {
    maven { 
        url 'http://repo.jenkins-ci.org/releases'
    }
}
dependencies {
    compile('com.sun.winsw:winsw:1.19@exe')
}

以上回报:

* What went wrong:
Could not resolve all dependencies for configuration ':compileClasspath'.
> Could not find winsw.exe (com.sun.winsw:winsw:1.19).
  Searched in the following locations:
      http://repo.jenkins-ci.org/releases/com/sun/winsw/winsw/1.19/winsw-1.19.exe

1 个答案:

答案 0 :(得分:0)

似乎我错过了分类器

compile('com.sun.winsw:winsw:1.19:bin@exe')

compile(group: 'com.sun.winsw', name: 'winsw', version: '1.19', classifier: 'bin', ext: 'exe')