This repository has been archived by the owner on Nov 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
92 lines (74 loc) · 2.83 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
plugins {
id "java"
id "idea"
id "application"
id "com.palantir.docker" version "0.26.0"
id "org.springframework.boot" version "2.4.5"
id "io.spring.dependency-management" version "1.0.11.RELEASE"
}
// Camunda Spring Boot version compatability
// https://docs.camunda.org/manual/latest/user-guide/spring-boot-integration/version-compatibility/
group "ch.umb.solutions.consulting.camunda"
version "1.0.0"
application {
mainClassName = "ch.umb.solutions.consulting.camunda.springbootquickstarter.ProcessApp"
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
bootJar {
manifest {
attributes "Implementation-Version": "${project.version}"
}
}
ext {
camundaVersionCE = "7.15.0"
camundaVersionEE = "7.15.0-ee"
}
repositories {
// only required for Camunda EE. uncomment the following lines to enable EE.
// maven {
// url "https://app.camunda.com/nexus/repository/camunda-bpm-ee/"
// credentials {
// username CamundaNexusUser
// password CamundaNexusPassword
// }
//}
mavenCentral()
}
dependencyManagement {
imports {
// use ${camundaVersionEE} for Camunda EE or ${camundaVersionCE} for Camunda CE version
mavenBom "org.camunda.bpm:camunda-bom:${camundaVersionCE}"
}
}
dependencies {
// Camunda EE
// implementation "org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp-ee:${camundaVersionEE}"
// Camunda CE
implementation "org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp:${camundaVersionCE}"
implementation "org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:${camundaVersionCE}"
implementation "org.springframework.boot:spring-boot-starter-jdbc"
implementation "org.camunda.spin:camunda-spin-dataformat-all"
implementation "org.camunda.bpm:camunda-engine-plugin-spin"
// either enable h2 or postgres
implementation "com.h2database:h2"
implementation "org.postgresql:postgresql"
// Java 11 missing modules
implementation "javax.activation:javax.activation-api:1.2.0"
implementation "javax.xml.bind:jaxb-api:2.3.1"
implementation "org.glassfish.jaxb:jaxb-runtime:2.3.3"
testImplementation "org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-test:${camundaVersionCE}"
testImplementation "org.camunda.bpm.extension:camunda-bpm-assert-scenario:1.0.0"
testImplementation "org.camunda.bpm.extension:camunda-bpm-process-test-coverage:0.4.0"
// for development only, exclude from production build
compileOnly "org.springframework.boot:spring-boot-devtools"
}
docker {
name "${project.group}/${rootProject.name}:${version}"
dockerfile file("docker/Dockerfile")
files jar.archiveFile
buildArgs([JAR_NAME: "${jar.archiveFileName}"])
}
clean {
delete 'target'
}