4

Is there a plugin available for Gradle that can be used for deploying to a remote WildFly server? I did a search and couldn't find anything yet.

Opal
  • 81,889
  • 28
  • 189
  • 210
Albin Joseph
  • 1,020
  • 3
  • 16
  • 25

3 Answers3

3

WildFly team is aware of this and working on it. I'll keep you update on when the plugin would be available. In the meanwhile, you can look at the Maven plugin at:

https://docs.jboss.org/wildfly/plugins/maven/latest/

Arun Gupta
  • 3,965
  • 5
  • 31
  • 39
3

You can already utilize the Cargo plugin for this. It supports deploying to a remote WildFly server.

kiltek
  • 3,183
  • 6
  • 47
  • 70
Benjamin Muschko
  • 32,442
  • 9
  • 61
  • 82
  • I get this error: `Execution failed for task ':cargoRunLocal'. Cannot create configuration. There's no registered configuration for the parameters (container [id = [wildfly10x], type = [installed]], configuration type [standalone]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it?` – kiltek Jul 17 '16 at 15:08
  • @kiltek: Your question has been answered on the [GitHub page for the Cargo plugin](https://github.com/bmuschko/gradle-cargo-plugin/issues/152). – Benjamin Muschko Jul 18 '16 at 14:48
  • I added these lines to my `build.gradle` file, but I still get the same error: `def cargoVersion = '1.4.5' cargo "org.codehaus.cargo:cargo-core-uberjar:$cargoVersion", "org.codehaus.cargo:cargo-ant:$cargoVersion"` – kiltek Jul 18 '16 at 18:51
  • Please don't double post your questions. – Benjamin Muschko Jul 18 '16 at 18:55
0

Gradle plugin is already available at: https://github.com/nikit-cpp/wildflyDeployPlugin

Benjamin Muschko
  • 32,442
  • 9
  • 61
  • 82
Cleankod
  • 2,220
  • 5
  • 32
  • 52