ProGuard(sbt-proguard):" target / scala-2.10 / proguard / merged / LICENSE"目录未合并

时间:2016-09-23 09:42:52

标签: scala sbt proguard sbt-proguard

我收到以下错误。

[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")

以上都不起作用。合并策略有什么不对吗?

谢谢。

1 个答案:

答案 0 :(得分:0)

ProguardKeys.mergeStrategies in Proguard += ProguardMerge.rename("LICENSE.*".r)

rename()完成了工作〜!