-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
120 lines (107 loc) · 3.95 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import org.labkey.gradle.util.BuildUtils;
import org.labkey.gradle.util.ExternalDependency
plugins {
id 'org.labkey.build.module'
}
configurations.all {
resolutionStrategy {
// Force to get a fix for CVEs
force "org.apache.commons:commons-email:1.5"
}
}
dependencies {
implementation "org.eclipse.angus:angus-mail:${angusMailVersion}"
BuildUtils.addExternalDependency(
project,
new ExternalDependency(
"org.activiti:activiti-bpmn-model:${activitiVersion}",
"Workflow",
"Activiti",
"http://activiti.org/",
ExternalDependency.APACHE_2_LICENSE_NAME,
ExternalDependency.APACHE_2_LICENSE_URL,
"BPMN 2.0 modeling library",
)
)
BuildUtils.addExternalDependency(
project,
new ExternalDependency(
"org.activiti:activiti-engine:${activitiVersion}",
"Workflow",
"Activiti",
"http://activiti.org/",
ExternalDependency.APACHE_2_LICENSE_NAME,
ExternalDependency.APACHE_2_LICENSE_URL,
"BPMN Engine",
),
{
// We get mail and activation jars from the api build and include them in the tomcat/lib directory. They've gone
// by various names over the last couple years... exclude them all to prevent version compatibility problems.
exclude group: "com.sun.mail", module:"javax.mail" // Old name
exclude group: "com.sun.mail", module:"jakarta.mail" // New name
exclude group: "javax.activation", module: "activation" // Old name
exclude group: "javax.activation", module: "javax.activation" // Old name
exclude group: "javax.activation", module: "jakarta.activation" // New name
// we get spring jars from api
exclude group: "org.springframework", module:"spring-beans"
}
)
BuildUtils.addExternalDependency(
project,
new ExternalDependency(
"org.activiti:activiti-image-generator:${activitiVersion}",
"Workflow",
"Activiti",
"http://activiti.org/",
ExternalDependency.APACHE_2_LICENSE_NAME,
ExternalDependency.APACHE_2_LICENSE_URL,
"BPMN 2.0 model image library",
)
)
BuildUtils.addExternalDependency(
project,
new ExternalDependency(
"org.activiti:activiti-process-validation:${activitiVersion}",
"Workflow",
"Activiti",
"http://activiti.org/",
ExternalDependency.APACHE_2_LICENSE_NAME,
ExternalDependency.APACHE_2_LICENSE_URL,
"BPMN 2.0 model validation",
)
)
BuildUtils.addExternalDependency(
project,
new ExternalDependency(
"joda-time:joda-time:${jodaTimeVersion}",
"Workflow",
"Joda.org",
"http://www.joda.org/joda-time/",
ExternalDependency.APACHE_2_LICENSE_NAME,
ExternalDependency.APACHE_2_LICENSE_URL,
"Dependency of Activiti workflow engine",
)
)
BuildUtils.addExternalDependency(
project,
new ExternalDependency(
"org.mybatis:mybatis:${mybatisVersion}",
"Workflow",
"Mybatis",
"https://mybatis.github.io/",
ExternalDependency.APACHE_2_LICENSE_NAME,
ExternalDependency.APACHE_2_LICENSE_URL,
"Dependency of Activiti for database interaction",
)
)
BuildUtils.addLabKeyDependency(project: project, config: "implementation", depProjectPath: BuildUtils.getPlatformModuleProjectPath(project.gradle, "core"), depProjectConfig: "apiJarFile")
}
sourceSets {
main {
resources {
srcDirs = ['src'] // src is included because it contains some configuration files.
exclude '**/*.java'
exclude '**/*.jsp'
}
}
}