Skip to content

dmarks2/liferay-plugin-intellij

Repository files navigation

Liferay Plugin for IntelliJ

Build Status

Description

A plugin for Jetbrains IntelliJ IDEA to support developing Liferay components.

Note that there is an official plugin for IntelliJ from Liferay (which I contribute to regularly). This plugin here should be considered experimental. Both plugins cannot be installed at the same time.

This plugin mainly focuses on code completion features. It gives IntelliJ IDEA more information about typical Liferay files and project structures. By this, the existing code completion features of IntelliJ can be used for Liferay specific files, too. There is no user interface for the plugin. Improvements have been made in the following areas:

Supported IDEs

  • IntelliJ 2024.1 and above (Community)
  • IntelliJ 2024.1 and above (Ultimate)

Supported Liferay Versions

  • Liferay 6.1 CE / EE
  • Liferay 6.2 CE / EE
  • Liferay 7.0, 7.1, 7.2, 7.3, 7.4 / DXP

Supported Build Tools

  • Maven
  • Gradle (Liferay 7.0, 7.1, 7.2, 7.3, 7.4 / DXP only)
  • Npm

Releases

See Releases to download binary release versions.

For automatic updates configure the following URL as custom repository in IntelliJ IDEA:

https://raw.githubusercontent.com/dmarks2/liferay-plugin-intellij/master/updatePlugins.xml

Developers

This plugin uses a Gradle based IntelliJ Plugin development.

To build the plugin, just run gradle build. The build script downloads required files automatically.

Contributions are welcome.

Known Issues

  • Indent does not work properly inside <aui:script>-Tags containing other tags like <portlet:namespace/>.
  • @theme_image_path@ reference in CSS files work, but still shown in red (SCSS works properly)
  • This plugin cannot be installed together with the official plugin from Liferay.
  • Running groovy scripts on the Liferay server is not working with Liferay 7.4

Licence

See LICENSE.txt.

For third-party licenses see LICENSE-3RD-PARTY.txt.