Designer 10.5 | Working with Business Console Gadgets | Working with Business Console Gadgets | Importing a Gradle or Apache Maven Based Web Project to Create Gadgets
 
Importing a Gradle or Apache Maven Based Web Project to Create Gadgets
You can import a Gradle or Apache Maven based web project into Designer to create gadgets. After importing, the Gradle or Apache Maven based web project must be modified prior to creating gadgets.
*To import and modify a Gradle or Apache Maven based web project
1. In Designer, click File > Import > General > Existing Projects into Workspace, and then click Next.
2. In the Import dialog box, perform one of the following:
*In Select root directory, click Browse to choose the directory location of your Gradle or Apache Maven based web project.
*In Select archive file, click Browse to select a zip file of your Gradle or Apache Maven based web project.
3. Click Finish.
The Project Explorer and Navigator views display the imported project.
4. To modify the project, perform the following:
a. Right-click the project and click Properties.
The Properties dialog box for the project appears.
b. Click Project Facets and select Convert to faceted form.
c. In the Configuration drop-down list, select CAF Web Application.
d. Click the Runtimes tab and select the My webMethods Server runtime environment.
If a runtime environment is not listed, click New to add the My webMethods Server runtime environment.
e. Click Further configuration required.
f. In the Content directory field, type the location of the WEB-INF parent folder. For example, src/main/webapp.
g. Click Next and select CAF libraries in the Type drop-down list, and then click OK.
h. In the Properties dialog box, click Apply, and then click OK.
i. In the Project Explorer or Navigator view, right-click the project and click CAF tools > Repair CAF Project.
You can now create gadgets in the project. For information about creating new gadgets, see Creating a New Business Console Gadget.