[ 
https://issues.apache.org/jira/browse/GEODE-7164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16922773#comment-16922773
 ] 

Aaron Lindsey edited comment on GEODE-7164 at 9/4/19 7:38 PM:
--------------------------------------------------------------

I was able to reproduce the "output path not specified for modules..." issue on 
IntelliJ IDEA CE versions 2019.1.4 and 2019.2.1 (see description for details). 
The issue seems to occur when IntelliJ imports Gradle sub-projects as modules 
that have "Use module compile output path" checked but don't have an Output 
path specified, as shown in the screenshot below:

!Screen Shot 2019-09-04 at 10.51.04 AM.png|width=809,height=501!

The best solution I've found involves 2 parts:
 # Set the Project compiler output as shown in this SO answer: 
[https://stackoverflow.com/a/40675201].
 # Add "{{inheritOutputDirs = true}}" to the idea plugin configuration in 
{{ide.gradle}}. This causes IntelliJ to import gradle sub-projects with the 
"Inherit project compile output path" option checked by default. You may need 
to reimport gradle projects after making this change if you do not have 
auto-import enabled.


was (Author: aaronlindsey):
The best solution I've found involves 2 parts:
 # Set the Project compiler output as shown in this SO answer: 
[https://stackoverflow.com/a/40675201].
 # Add "{{inheritOutputDirs = true}}" to the idea plugin configuration in 
{{ide.gradle}}. This causes IntelliJ to import gradle sub-projects with the 
"Inherit project compile output path" option checked by default. You may need 
to reimport gradle projects after making this change if you do not have 
auto-import enabled.

> IntelliJ IDEA 2019 error: the output path is not specified for modules
> ----------------------------------------------------------------------
>
>                 Key: GEODE-7164
>                 URL: https://issues.apache.org/jira/browse/GEODE-7164
>             Project: Geode
>          Issue Type: Improvement
>            Reporter: Aaron Lindsey
>            Assignee: Aaron Lindsey
>            Priority: Major
>         Attachments: Screen Shot 2019-09-04 at 10.45.47 AM.png, Screen Shot 
> 2019-09-04 at 10.51.04 AM.png
>
>
> When delegating build/run actions to IntelliJ IDEA instead of Gradle, 
> IntelliJ IDEA 2019 fails to build geode with an error similar to the one 
> shown in the screenshot below:
>  !Screen Shot 2019-09-04 at 10.45.47 AM.png|width=370,height=298!
> h4. Steps to Reproduce:
> (Tested on IntelliJ IDEA CE versions 2019.1.4 and 2019.2.1)
>  # Make sure Gradle delegation is disabled for build/run
>  ** Instructions for 2019.1.4:
>  *** Go to Preferences | Build, Execution, Deployment | Build Tools | Gradle 
> | Runner
>  *** Make sure "Delegate build/run actions to Gradle" is unchecked
>  ** Instructions for 2019.2.1:
>  *** Go to Preferences | Build, Execution, Deployment | Build Tools | Gradle
>  *** Make sure "Build and Run using:" is set to "IntelliJ IDEA"
>  # Clone geode into an empty directory
>  # Follow the instructions 
> [here|https://github.com/apache/geode/blob/develop/BUILDING.md] to import and 
> build geode using IntelliJ IDEA
>  # Enable Gradle build/run delegation
>  ** Instructions for 2019.1.4:
>  *** Go to Preferences | Build, Execution, Deployment | Build Tools | Gradle 
> | Runner
>  *** Check "Delegate build/run actions to Gradle"
>  ** Instructions for 2019.2.1:
>  *** Go to Preferences | Build, Execution, Deployment | Build Tools | Gradle
>  *** Set "Build and Run using:" to "Gradle"
>  # Select "Build Project" from the Build menu to build geode
>  # After the build succeeds, revert the change from step 4 to switch back to 
> the IntelliJ build runner
>  # Repeat step 5 to build the project again
>  # The popup error message shown in the screenshot should show and IntelliJ 
> will not initiate the build



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to