Gradle project in v 12 preview

Hello Jetbrains Community,

i have recently downloaded the v 12 preview and want to import a project "from external model". Neither could i find the "Import from external model" dialog nor something that allows me to setup an Idea project from a build.gradle file.

The other way round (create an idea project with a gradle idea plugin) does also not work but that is not my concern. I would prefer the "import externam model" way if thats possible.

Could someone help me that?

Kind regards,

Sebastian

4 comments
Comment actions Permalink

Please use File->Import Project.

0
Comment actions Permalink

Hello Dmitry,

that doesnt work very well. I have a simple gradle project with some test cases. The directory layout is

project_directory >build.gradle
project_directory > src > test > java > mypackage> Test.java
project_directory > src > main > java > empty

I think thats the default gradle layout.

When i click "Open Project" Idea recognizes the gradle structure (see 1.png). I select the project an click on ok then i get an error dialog (see 2.png). I click ok and select Java > Java Module, i click next and finish (selecting no facet). After that the usual project view opens (see 3.png) but the test source files are missing. Is that correct?

Btw. in the "New Project" Dialog appears a maven module but no gradle module, which is very confusing.

Is there or will there be any documentation around such usability changes? I think that was much simpler in v11.

Kind regards,
Sebastian



Attachment(s):
1.png
3.png
2.png
0
Comment actions Permalink

Could you please file a ticket for this problem?

0

Please sign in to leave a comment.