Re: [play-framework] Removing default Hibernate Dependencies in play

129 views
Skip to first unread message

Will Sargent

unread,
Oct 30, 2012, 2:43:20 PM10/30/12
to play-fr...@googlegroups.com
Play's setup is based on SBT, so you need to use SBT's underlying Ivy
dependencies to remove it. Look for "Exclude Transitive Dependencies"

http://www.scala-sbt.org/release/docs/Detailed-Topics/Library-Management

libraryDependencies +=
"log4j" % "log4j" % "1.2.15" excludeAll(
ExclusionRule(organization = "com.sun.jdmk"),
ExclusionRule(organization = "com.sun.jmx"),
ExclusionRule(organization = "javax.jms")
)

On Tue, Oct 30, 2012 at 4:08 AM, Mirko Calvaresi <mcc...@gmail.com> wrote:
> Hello, everyone. I need to remove the default dependencies to Hibernate core
> because conflicting with a dependencies of ax external library. I'm using
> Play 2.0.4
> I've tried
> val appDependencies = Seq(
> "play" %% "play" % play.core.PlayVersion.current exclude("org.hibernate",
> "hibernate-core"),
> without any success.
> Could you help me please?
>
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/DNT1-4C2kVMJ.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.

Alberto Andreotti

unread,
Nov 5, 2014, 2:43:27 PM11/5/14
to play-fr...@googlegroups.com, will.s...@gmail.com
Hello folks,

I'm having a similar problem. I'm not using Hibernate explicitly in my code, but it seems that I'm getting the dependency somehow into my build and I'm even seeing some Hibernate logging at runtime!.
So I would like to know if I can exclude the Hibernate dependency just like that, and if this is going to to help me get rid of the unwanted logging.

thanks!,
Alberto.
Reply all
Reply to author
Forward
0 new messages