[jira] [Commented] (OFBIZ-12149) Navigate from groovyScripts to java classes in IntelliJ

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-12149) Navigate from groovyScripts to java classes in IntelliJ

Nicolas Malin (Jira)

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

ASF subversion and git services commented on OFBIZ-12149:
---------------------------------------------------------

Commit da2ab82b111f8bc25c5b7335fa192350de4cc775 in ofbiz-framework's branch refs/heads/trunk from Daniel Watford
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=da2ab82 ]

Added a SourceSet for groovyScript files specifying the classpath that should be used for compilation.

(OFBIZ-12149)

This helps IDEs navigate to the scripts' dependencies, making it easier
to spot issues during development.

However we don't want gradle to attempt to compile groovyScripts,
therefore the compileGroovyScriptsGroovy task is disabled.

> Navigate from groovyScripts to java classes in IntelliJ
> -------------------------------------------------------
>
>                 Key: OFBIZ-12149
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12149
>             Project: OFBiz
>          Issue Type: Improvement
>    Affects Versions: Trunk
>            Reporter: Daniel Watford
>            Assignee: Daniel Watford
>            Priority: Minor
>
> Using IntelliJ for ofbiz development of groovyScript files is awkward.
> Each time I view a groovyScript file in IntelliJ I am prompted with a warning that the file's parent module is not configured with a Groovy SDK and am prompted to select one.
> After selecting an SDK, some code highlighting issues are resolved that relate to the Groovy language, but it is not possible to navigate from a groovyScript file to other ofbiz classes.
> The code navigation issue impacts developer productivity when using IntelliJ to work with groovyScript files as we have to manually associate SDKs and don't get prompted by the IDE if a typo is make in a class or method name.
> A solution has been proposed and discussed on the mailing this that adds groovyScript files to a new SourceSet in the gradle build which is then imported by IntelliJ. With these changes applied IntelliJ provides navigation from groovyScript files to ofbiz's java classes.
> [Mailing list discussion thread.|https://lists.apache.org/thread.html/re1f3f0d8ab71950b001e669c38cf6b1ad223d5e82e9ccc6c7d62715e%40%3Cdev.ofbiz.apache.org%3E]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)