0
我收到以下錯誤。ProGuard(sbt-proguard):「target/scala-2.10/proguard/merged/LICENSE」目錄不合並
[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")
以上都不是工作。合併策略有什麼問題嗎?
謝謝。
試試這個ProguardKeys.mergeStrategies in Proguard + = ProguardMerge.first(「LICENSE。*」。r)'。這件事情是區分大小寫的。 – Zyoma
@Zyoma感謝您的評論。 – DynamicScope