The Creating Commerce Store Accelerator Modules chapter describes how to use the Gradle build system to create a simple application module and simple plugin module using module templates provided with the distribution. As you begin to create more complex new modules of your own, keep in mind that you may have to consider the following tasks.

  • Make sure dynamoHome is set. See setDynamoHome.

  • Create the new module’s directory in the correct location:

    • For application modules, create a CommerceAccelerator/Application/application_name directory.

    • For a plugin module, create a CommerceAccelerator/Plugins/plugin_name directory.

    Use the templates provided to populate these directories. See the Creating Commerce Store Accelerator Modules chapter for details.

  • Add the new module to the include script block in the settings.gradle file in the root CommerceAccelerator module. See Specifying the Modules to Include in the Build.

  • Define any build properties required by your new module. See Defining Build Properties.

  • Create the /src/main/java and /src/main/resources directories in your new module and place your Java class files and resource files in them. See Java Source Code and Resource File Locations.

  • Create the /src/test/java directory and populate it with any unit tests you want to run as part of the build. See Creating Unit Tests for Your Modules.

  • For application modules:

    • Define the list of plugins to be included in the application module in a project-specific gradle.properties file. See pluginsManifestBuilder.

    • Add a buildWar task implementation to the project-specific gradle.properties file for that application. See buildWar.

  • For modules that must contribute to the deployment templates used to create any supporting EAC applications, create the deployment template fragments in the correct locations as described in composeDeployFromBaseAndPlugins and composeDeployFromEacTemplates.

After building the new module, you must stop and remove the affected Oracle Commerce server instances, add the new module to them in the appropriate startup location, and then re-assemble and re-deploy the server instances. You can use Dynamo Server Admin to verify that your new module is running. Start Dynamo Server Admin for the appropriate server. On the Dynamo Server Admin home page, click the Running ATG Products link. Verify that your module exists in the running modules list.


Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices