我一直很难让shadowJar正常工作,它要么给我警告,要么在我通过添加jar.dependsOn shadowJar修复警告时不应用。
有人知道为什么会发生这种情况,以及我如何修复警告并获得一个工作的shadowJar?
日志:https://gist.github.com/poqdavid/c16e6f3ff66ec496cc574f4ca9dcd9d2#file-log1-log
构建脚本:https://gist.github.com/poqdavid/c16e6f3ff66ec496cc574f4ca9dcd9d2#file-build-gradle
分级版本: 7.4
影子版本: 7.1.2
发布于 2022-05-18 17:33:46
通过添加tasks.shadowJar.dependsOn('reobfJar'),我设法使它正常工作
而且很明显,这是shadowJar本身的问题,https://github.com/johnrengelman/shadow/issues/713
https://stackoverflow.com/questions/72259438
复制相似问题