首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在gradle中指定以“<version>-bin.exe”结尾的依赖项?

如何在gradle中指定以“<version>-bin.exe”结尾的依赖项?
EN

Stack Overflow用户
提问于 2016-08-18 11:00:09
回答 1查看 258关注 0票数 0

如何从下面的回购获得winsw-1.19-bin.exe

代码语言:javascript
复制
repositories {
    maven { 
        url 'http://repo.jenkins-ci.org/releases'
    }
}
dependencies {
    compile('com.sun.winsw:winsw:1.19@exe')
}

上述报税表:

代码语言:javascript
复制
* 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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-18 11:38:11

好像我错过了分类器

代码语言:javascript
复制
compile('com.sun.winsw:winsw:1.19:bin@exe')

代码语言:javascript
复制
compile(group: 'com.sun.winsw', name: 'winsw', version: '1.19', classifier: 'bin', ext: 'exe')
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39016500

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档