Hello,
As part of project development, I use the cargo gradle plugin to do my deployments.
I use this plugin to deploy on glassfish and payara. and I would like to be able to specify the deployment order
The plugin uses the Cargo Ant tasks. I don't see anything in your documentation that would let you define a deployment order.
I notice this is possible with Maven 3 plugin. here is an example:
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven3-plugin</artifactId>
<version>1.10.6</version>
<configuration>
<container>
<containerId>payara</containerId>
<artifactInstaller>
<groupId>fish.payara.distributions</groupId>
<artifactId>payara</artifactId>
<version>5.2022.5</version>
</artifactInstaller>
</container>
<configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<type>war</type>
<order>1</order>
</deployable>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>MavenCargoTest2</artifactId>
<type>war</type>
<order>2</order>
</deployable>
</deployables>
<home>C:\payara-server\_WORKDIR\5.48.1\payara5\glassfish\domains\</home>
<properties>
<cargo.hostname>localhost</cargo.hostname>
<cargo.servlet.port>8080</cargo.servlet.port>
<cargo.glassfish.admin.port>4848</cargo.glassfish.admin.port>
<cargo.remote.username>admin</cargo.remote.username>
<cargo.remote.password>adminadmin</cargo.remote.password>
<cargo.glassfish.deploy.arg.remoteUpload>--upload=true</cargo.glassfish.deploy.arg.remoteUpload>
</properties>
</config>
</config>
<!-- provides JSR88 client API to deploy on Payara -->
<dependencies>
<dependency>
<groupId>org.glassfish.main.deployment</groupId>
<artifactId>deployment-client</artifactId>
<version>5.0</version>
</dependency>
</dependencies>
</plugin>
is it possible to do the same with Cargo ant tasks? in order to update the gradle plugin to offer this possibility
thank you for your reply