Category Archives: Gradle

Gradle, Hibernate and “No Persistence provider for EntityManager named”

During the actual migration of an JEE project, consisting of several moduls (WAR, EJB ..) from Ant to Gradle I faced the following problem: In the test phase, e.g. when calling gradle test, one integration test (or should it better be called functional test? I’m not sure about this) stated out that: No Persistence provider […]

 

0
Kudos
Don't
move!

Read more

Gradle – Adding dependecy to task eclipse fails

Today I toyed a little bit around with gradle and tried to add an additional path to sourceSets.main.java for separate generated files from my own code. This works very well via srcDirs += ‘src/main/generated’. But after I cleaned up my project folder (removing IDE specific files and the generated classes) and using the eclipse task […]

 

4
Kudos
Don't
move!

Read more

@Resource.lookup – How to solve classpath problems when compiling or testing with gradle

I’ve started this week with Gradle and tried to convert one project from maven to Gradle. Besides of some, I think beginner mistakes, I faced with the following problem. With JEE6 the @Resource annotation was extented with the “lookup” attribute. This attribute links to any resource which uses a global JNDI name. Something like this: […]

 

0
Kudos
Don't
move!

Read more