How to get a reference to the jar file produced by Gradle build?

I need to sign a jar after the jar task is being done in gradle. I have a need to reference the produced jar file from the build, and I can recreate the jar file, but I really look for a property that does this for me. Here is how I've done it:
jar.doLast {
  jarfile = project.libsDir.path + File.separator + project.Name + '-' + project.version + '.jar'
  ant.signJar(jar: jarfile, ....
}
Is there a property which can be used instead of the long "path calculation"?

以上就是How to get a reference to the jar file produced by Gradle build?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HBuilder

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏