在我的简单gradle构建中,我希望同时使用ShadowJar和ProGuard。我有,其中shadowJar任务的输出是proguard任务的输入,它工作得很好,但是在我的例子中,我更喜欢首先创建一个小的混淆jar,在那里我很好地指定库依赖关系,让proguard只关注我的代码,然后我想把它传递给我的设置如下: injars jar
outjars "build/
shadowJar;java -jar build/libs/gradleScriptKotlin.jar
Using Kotlin incrementalcompilation
A problem was found with the configuration of task ':shadowJar'.BUILD SUCCESSFUL in 1s
4 actionable tasks: 4 exe