DynamicScope
DynamicScope

Reputation: 705

ProGuard (sbt-proguard) : "target/scala-2.10/proguard/merged/LICENSE" directory not merging

I am getting the following error.

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

And I've tried the followings...

ProguardKeys.merge in Proguard := true
ProguardKeys.mergeStrategies in Proguard += ProguardMerge.discard("license/.*".r)

and

ProguardKeys.merge in Proguard := true
ProguardKeys.mergeStrategies in Proguard += ProguardMerge.append("license")

None of above are working. Are there anything wrong about the merge strategies?

Thank you.

Upvotes: 0

Views: 79

Answers (1)

DynamicScope
DynamicScope

Reputation: 705

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

rename() did the job~!

Upvotes: 0

Related Questions