Skip to content
Nalu
Documentation / Integration

Integration

To integrate Nalu into your project, the following steps need to be done:

  • for GWT 2.x:
    • Add needed library to your project or add a Maven dependency
    • Modify the module Descriptor (*.gwt.xml) and
    • Set up the entry point
    • Create application-, controller- and component-classes
  • for GWT 3.0:
    • Once GWT 3 / J2Cl is available, we will update this section.

Dependencies

Nalu has dependencies to the following projects:

Maven

Working with Maven, you # Integration To integrate Nalu into your project, the following steps need to be done:

  • for GWT 2.x:
    • Add needed library to your project or add a Maven dependency
    • Modify the module Descriptor (*.gwt.xml) and
    • Set up the entry point
    • Create application-, controller- and component-classes
  • for GWT 3.0:
    • Once GWT 3 / J2Cl is available, we will update this section.

Dependencies

Nalu has dependencies to the following projects:

See #9 for current status before downloading the dependencies.

Maven

Working with Maven, you need to add the following maven dependency:

    <dependency>
      <groupId>io.github.nalukit</groupId>
      <artifactId>nalu</artifactId>
      <version>4.0.2</version>
    </dependency>

and configurate the maven-compiler-plugin with:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>3.14.0</version>
  <configuration>
    <annotationProcessorPaths>
      <path>
        <groupId>io.github.nalukit</groupId>
        <artifactId>nalu-processor</artifactId>
        <version>4.0.2</version>
      </path>
    </annotationProcessorPaths>
  </configuration>
</plugin>

Depending on the widget library your project is using, you have to add another dependency.

Elemental2 based widget libraries

In case the project is using a widget library based on elemental2 or elemento or the project is using a library like Domino-UI, add the following dependency to your pom:

    <dependency>
      <groupId>io.github.nalukit</groupId>
      <artifactId>nalu-plugin-elemental2</artifactId>
      <version>4.0.2</version>
    </dependency>

Using GWT Widget

In case the project is based on GWT widgets, add the following plugin to your pom:

   <dependency>
      <groupId>io.github.nalukit</groupId>
      <artifactId>nalu-plugin-gwt</artifactId>
      <version>4.0.2</version>
    </dependency>

and configurate the maven-compiler-plugin with:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>3.14.0</version>
  <configuration>
    <annotationProcessorPaths>
      <path>
        <groupId>io.github.nalukit</groupId>
        <artifactId>nalu-processor</artifactId>
        <version>4.0.2</version>
      </path>
      <path>
        <groupId>io.github.nalukit</groupId>
        <artifactId>nalu-plugin-gwt-processor</artifactId>
        <version>4.0.2</version>
      </path>
    </annotationProcessorPaths>
  </configuration>
</plugin>

Nalu is available on Maven central.

Requirements

At the moment Nalu requires at least Java 17 and GWT 2.12.2. We recommend to use always the latest GWT version. The dependencies and plugins are described above. Nalu is available on Maven Central.

Important Note: io.github.nalukit.nalu.internal.*

All code inside the io.github.nalukit.nalu.internal.* packages is considered private API and should not be relied upon at all. It can change at any time and with no announcement.

Classes and Methods annotated with @NaluInternalUse

All classes and methods in Nalu annotated with @NaluInternalUse is considered private API and should not be relied upon at all. It can change at any time and with no announcement.

This page is generated from the Nalu wiki. The wiki is the source of the text.