我收到以下错误。
[info] Merging inputs before proguard...
[error] /my/project/target/scala-2.10/proguard/merged/LICENSE (Is a directory)
java.lang.RuntimeException: Failed to merge all inputs. Merge strategies can be used to resolve conflicts.
...
[error] (proguard:mergedInputs) Failed to merge all inputs. Merge strategies can be used to resolve conflicts.
(More details ...)
我已尝试过以下内容......
ProguardKeys.merge in Proguard := true
ProguardKeys.mergeStrategies in Proguard += ProguardMerge.discard("license/.*".r)
和
ProguardKeys.merge in Proguard := true
ProguardKeys.mergeStrategies in Proguard += ProguardMerge.append("license")
以上都不起作用。合并策略有什么不对吗?
谢谢。
答案 0 :(得分:0)
ProguardKeys.mergeStrategies in Proguard += ProguardMerge.rename("LICENSE.*".r)
rename()完成了工作〜!