EAR artifact incomplete from gradle import

Answered

Hi,

I'm evaluating IntelliJ 2017.2 EAP to be possibly the new IDE for our dev team and I ran into an issue I can't resolve.

There is an existing project I'm trying to import, based on gradle with the following setup:
rootproject
- build.gradle
- settings.gradle
- gradle.properties
- warproject
-- build.gradle
- ejbproject
-- build.gradle
- earproject
-- build.gradle
- utilityproject
-- build.gradle

Gradle creates the ear the way it should be:
earfile.ear
- lib
-- libs of warproject
-- libs of ejbproject
-- libs of utilityproject
-- utilityproject.jar
- META-INF
-- application.xml
-- MANIFEST.MF
- warproject.war
- ejbproject.jar

Instead IntelliJ does not include the libs of warproject/ejbproject/utilityproject, not in the earfile.ear/lib folder nor in the .war or .jar files.

It is very important to have a simple setup for the developers, so changing the artifact setup after project import manually is not an option.

Alternatively I've been trying to use the gradle idea plugin, but it does not generate these artifacts in the .ipr file for the rootproject within the ArtifactManager (I'm going to ask for support in a gradle forum to probably get this going). I've even been trying to import it from gradle generated Eclipse project files without success. These are my first steps with IntelliJ and I like it a lot from the beginning but not being able to generate a deployable artifact from the IDE is a showstopper.

If you need more information just let me know.

Regards
Andreas

0
2 comments
Avatar
Permanently deleted user

Thank you for your quick response and the further information!

0

Please sign in to leave a comment.