如何使用jenkins artifactory插件部署shadow jar

时间:2021-06-25 21:52:00

I'm using com.github.johnrengelman.shadow plugin in gradle to be able to create shadow jar. How can i deploy this jar (and not the main artifact) from jenkins artifactory plugin?

我在gradle中使用com.github.johnrengelman.shadow插件来创建阴影jar。我如何从jenkins artifactory插件部署这个jar(而不是主要的工件)?

1 个解决方案

#1


1  

Solved it by renaming artifact created by shadowJar task to the project-version.jar name and overwriting original jar

通过将shadowJar任务创建的工件重命名为project-version.jar名称并覆盖原始jar来解决此问题

#1


1  

Solved it by renaming artifact created by shadowJar task to the project-version.jar name and overwriting original jar

通过将shadowJar任务创建的工件重命名为project-version.jar名称并覆盖原始jar来解决此问题