java - Gradle: excluding a jar from runtime dependencies -


i need exclude jar runtime dependency via gradle.

i getting error:

caused by: java.lang.illegalstateexception: conflicting persistence unit definitions name 'ldb-jpa': file:/d:/ericfrancis/shared/build/libs/shared.jar, file:/d:/ericfrancis/shared/build/resources/main 

i'm trying exclude jar.

how tell gradle this?

without more information (gradle version, relevant parts of build script, etc.), it's hard say. since isn't maven or ivy dependency, i'd consider not adding in first place.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -