Configuring build files

Use IntelliJ to configure and compile a JAR file, and then upload it as a package to your Control Room in Automation 360.

Prerequisites

A basic understanding of JDK and Java IntelliJ is required in order to build an action package. Ensure you have the following software and files:

Procedure

  1. Unzip the contents of the SDK package to your IdeaProjects directory and rename the folder from <latest package sdk zip file> to A2019FileDetails.
  2. In IntelliJ IDEA, go to File > Open and open the project located at C:\Users\<User>\IdeaProjects\A2019FileDetails.
  3. Open the settings.gradle file in the project root, and set the rootProject.name = 'A2019FileDetails'
  4. Update the package.template file located at src > main > resources > package.template.
  5. Change the package name from A2019DemoPackage to A2019FileDetails.
  6. Update the package name in locales json: go to src > main > resources > locales > en_US.json.
    1. Open the en_US.json file and update the required label field. Update the optional description.
    2. Delete all other remaining lines in the en_US.json file.
  7. Open the build.gradle in the project root. After the dependencies section, remove other dependencies, if they are not required.
  8. Save all files.

Next steps

Creating new Java class