I imported the project as a Gradle project and the Run/Debug configuration is 
listed under "Gradle".

Gradle project: 
/home/gbadner/git/hibernate-orm-HHH-redo-again/hibernate-entitymanager

Tasks: cleanTest test

VM options: -Dhibernate.jdbc.use_get_generated_keys=false 
-Dhibernate.connection.password=... 
-Dhibernate41.dialect=org.hibernate.dialect.DB2Dialect 
-Dhibernate.jdbc.use_streams_for_binary=false 
-Dhibernate.connection.username=... 
-Dhibernate.connection.driver_class=com.ibm.db2.jcc.DB2Driver 
-Dhibernate.dialect=org.hibernate.dialect.DB2Dialect 
-Dhibernate.connection.url=... -Dhibernate.connection.schema=...
 
Script parameters: --tests org.hibernate.jpa.test.query.QueryTest

How do I add db2jcc4.jar as a dependency?

Thanks,
Gail

----- Original Message -----
> From: "Steve Ebersole" <st...@hibernate.org>
> To: "Gail Badner" <gbad...@redhat.com>, "Hibernate Dev" 
> <hibernate-dev@lists.jboss.org>
> Sent: Thursday, June 4, 2015 6:46:24 PM
> Subject: Re: [hibernate-dev] How to run master unit test in Intellij with 
> non-default DB
> 
> I would assume you are using the "Run with Gradle" stuff in IntelliJ rather
> than the normal "Run it in IntelliJ" stuff
> 
> On Thu, Jun 4, 2015 at 7:01 PM Gail Badner <gbad...@redhat.com> wrote:
> 
> > For 4.3 and before, when running a unit test in Intellij using a
> > non-default DB, I would simply add the JDBC jar as a module dependency and
> > then add the hibernate-specific properties (e.g., for dialect, etc) as VM
> > options in the Run/Debug configuration.
> >
> > This doesn't work for master because the added dependency is not getting
> > picked up.
> >
> > Is there some other way to do this without messing with build.gradle or
> > libraries.gradle?
> >
> > Thanks,
> > Gail
> > _______________________________________________
> > hibernate-dev mailing list
> > hibernate-dev@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
> >
> 
_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to