warjarear
warjarear

Reputation: 31

How to import gradle ear artifact to Intellij

I have the following situation:

I am trying to write a little project in Java which should produce a single EAR file which contains a single WAR. There might be some JARs in the future, but it is not important now.

I need to use gradle for build automation and Intellij for developing. I have some problems with synchronization between those tools.

I have prepared a gradle project ‘ear-app’ with the ‘ear’ plugin applied. It depends on a second project ‘web’ which is war. It works well with gradle wrapper. ‘build’ task builds ‘ear’ file.

Unfortunately Intellij has not recognized the

‘ear’ artifact. In “Project Structure”, there is only web application artifact which comes from ‘web’ project.

Is it possible to make Intellij be able to recreate ‘ear’ artifact?

I do not keep intellij files in my repo, so I need a solution which bases on gradle configuration.

Upvotes: 3

Views: 1207

Answers (1)

MisterS
MisterS

Reputation: 65

Seems like this was asked over here in the meantime, and got this response from ɐuıɥɔɐɯ:

Seems automatic artifact configuration is not implemented yet in IDEA

Upvotes: 1

Related Questions