For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

securityRole

Add a security role to the deployment descriptor.

Return

this.

Since

1.0

Parameters

role

The security role to add.


Add a security role to the deployment descriptor.

Return

this.

Since

1.0

Parameters

role

The name of the security role to add.


Add a security role to the deployment descriptor after configuring it with the given action.

Return

this.

Since

2.1

Parameters

action

an action to configure the security role