Good morning.
I saw on camunda website that the deployment example/tutorial for BPMN and DMN shows a Maven use inside Eclipse IDE. For instance, I have Ubuntu 64 bit with eclipse installed, and Camunda docker image to deploy war files to.
What are the steps to obtain my .war file using gradle ? I closely followed that guide since I’m not a Java man (yet), but my team wants me to use gradle. Does it change anything in the project tree ?
Thanks and have a good day
Hi @pvermeil,
This is not really a Camunda BPM related question. Gradle is just another build tool like Maven.
You should be able to translate the Maven Pom files from the examples to use Gradle. There is also a WAR plugin for Gradle.
Cheers,
Christian
Here is my current gradle.build file. It manages to generate .war file, but I meet a reference error when one of my BPMN processes calls a DMN table. I don’t have this error when I deploy it with Maven as shown in the docs examples.
apply plugin: ‘java’
apply plugin: ‘war’
repositories {
mavenCentral()
}
dependencies {
testCompile ‘junit:junit:4.11’
}
I suspect this isn’t enough. Did I forget any dependencies to get a fully functionnal .war ? Like in this video (7:51), where we can see a spring-boot and an eclipse plugins in the build.gradle file. Did I miss something ?
The Maven build isn’t doing something maven-specific and the resulting WAR complies to Java EE 6 specification.
Did you try to compare the resulting WARs (Maven vs Gradle) and check for the differences between them using a diff tool? Then you should get a hint what is missing in your Gradle build configuration.
Cheers,
Christian