-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
270 lines (254 loc) · 12 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.gretty:gretty:4.0.3"
}
}
plugins {
id 'java'
id 'war'
// id "org.gretty"
// Provide convenience executables for trying out the examples.
id 'application'
// Generate Visual Studio Code .vscode & .json project files
id "visual-studio"
}
apply plugin: "org.gretty"
repositories {
mavenCentral()
mavenLocal()
maven {
// Adempiere GitHub Organization
url = 'https://maven.pkg.github.com/adempiere/adempiere'
credentials {
// project property, system properrty, enviroment variable
username = findProperty("deployUsername") ?: System.properties['deploy.user'] ?: System.getenv("GITHUB_DEPLOY_USER")
password = findProperty("deployToken") ?: System.properties['deploy.token'] ?: System.getenv("GITHUB_DEPLOY_TOKEN")
}
}
}
sourceCompatibility = 1.11
def baseVersion = '3.9.4'
def baseGroupId = 'io.github.adempiere'
def customBaseVersion = "adempiere-3.9.4"
dependencies {
implementation fileTree(
dir: 'lib',
include: [
'*.jar'
]
)
// ADempiere Core
implementation "${baseGroupId}:base:${baseVersion}"
implementation "${baseGroupId}:point-of-sales:${baseVersion}"
implementation "${baseGroupId}:store:${baseVersion}"
implementation "${baseGroupId}:distribution:${baseVersion}"
implementation "${baseGroupId}:freight:${baseVersion}"
implementation "${baseGroupId}:store:${baseVersion}"
implementation "${baseGroupId}:human-resource-and-payroll:${baseVersion}"
implementation "${baseGroupId}:extend:${baseVersion}"
implementation "${baseGroupId}:migration:${baseVersion}"
implementation "${baseGroupId}:asset:${baseVersion}"
implementation "${baseGroupId}:crm:${baseVersion}"
implementation "${baseGroupId}:production:${baseVersion}"
implementation "${baseGroupId}:project:${baseVersion}"
implementation "${baseGroupId}:request:${baseVersion}"
implementation "${baseGroupId}:adempiere.test:${baseVersion}"
implementation "${baseGroupId}:cashflow:${baseVersion}"
implementation "${baseGroupId}:manufacturing:${baseVersion}"
implementation "${baseGroupId}:wms:${baseVersion}"
implementation "${baseGroupId}:openid-authentication:${baseVersion}"
implementation "${baseGroupId}:investment-and-loan:${baseVersion}"
implementation "${baseGroupId}:time-and-attendance:${baseVersion}"
implementation "${baseGroupId}:loan:${baseVersion}"
implementation "${baseGroupId}:discord-notifier:${baseVersion}"
implementation "${baseGroupId}:telegram-notifier:${baseVersion}"
implementation "${baseGroupId}:tools:${baseVersion}"
implementation "${baseGroupId}:jasperreports:${baseVersion}"
// ADempiere External Libraries
implementation 'com.github.jjYBdx4IL:ecs:1.4.2.1'
implementation 'org.telegram:telegrambots:6.0.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.0.1'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.0'
implementation 'com.lowagie:itext:2.1.7'
implementation group: 'org.apache.poi', name: 'poi', version: '3.17'
// https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml
implementation group: 'org.apache.poi', name: 'poi-ooxml', version: '3.17'
// https://mvnrepository.com/artifact/com.itextpdf/pdfa
implementation group: 'com.itextpdf', name: 'pdfa', version: '7.1.13'
// https://mvnrepository.com/artifact/com.itextpdf/itextpdf
implementation group: 'com.itextpdf', name: 'itextpdf', version: '5.5.2'
// https://mvnrepository.com/artifact/io.konik/itext-carriage
implementation group: 'io.konik', name: 'itext-carriage', version: '0.8.0'
// https://mvnrepository.com/artifact/io.konik/harness
implementation group: 'io.konik', name: 'harness', version: '1.0.0'
// https://mvnrepository.com/artifact/com.sun.mail/javax.mail
implementation group: 'com.sun.mail', name: 'javax.mail', version: '1.4.7'
// https://mvnrepository.com/artifact/com.jgoodies/looks
implementation group: 'com.jgoodies', name: 'looks', version: '2.0.4'
// https://mvnrepository.com/artifact/javaee/javaee-api
implementation group: 'javaee', name: 'javaee-api', version: '5'
// https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-s3
implementation group: 'com.amazonaws', name: 'aws-java-sdk-s3', version: '1.11.827'
// https://mvnrepository.com/artifact/org.jfree/jfreechart
implementation group: 'org.jfree', name: 'jfreechart', version: '1.0.14'
// https://mvnrepository.com/artifact/commons-io/commons-io
implementation group: 'commons-io', name: 'commons-io', version: '2.8.0'
// https://mvnrepository.com/artifact/commons-validator/commons-validator
implementation group: 'commons-validator', name: 'commons-validator', version: '1.6'
// https://mvnrepository.com/artifact/org.apache.activemq/activemq-core
implementation group: 'org.apache.activemq', name: 'activemq-core', version: '5.7.0'
// https://mvnrepository.com/artifact/org.apache.ant/ant
implementation group: 'org.apache.ant', name: 'ant', version: '1.10.5'
// https://mvnrepository.com/artifact/com.github.lookfirst/sardine
implementation group: 'com.github.lookfirst', name: 'sardine', version: '5.9'
// https://mvnrepository.com/artifact/io.vavr/vavr
implementation group: 'io.vavr', name: 'vavr', version: '0.10.4'
// https://mvnrepository.com/artifact/net.sourceforge.barbecue/barbecue
implementation group: 'net.sourceforge.barbecue', name: 'barbecue', version: '1.5-beta1'
// https://mvnrepository.com/artifact/log4j/log4j
implementation group: 'log4j', name: 'log4j', version: '1.2.17'
// https://mvnrepository.com/artifact/com.oracle.database.jdbc/ojdbc6
implementation group: 'com.oracle.database.jdbc', name: 'ojdbc6', version: '11.2.0.4'
// https://mvnrepository.com/artifact/com.google.zxing/core
implementation group: 'com.google.zxing', name: 'core', version: '2.3.0'
// https://mvnrepository.com/artifact/it.sauronsoftware.cron4j/cron4j
implementation group: 'it.sauronsoftware.cron4j', name: 'cron4j', version: '2.2.5'
// https://mvnrepository.com/artifact/com.zaxxer/HikariCP
implementation group: 'com.zaxxer', name: 'HikariCP', version: '5.0.1'
// https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client
implementation group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '3.0.4'
// https://mvnrepository.com/artifact/org.postgresql/postgresql
implementation group: 'org.postgresql', name: 'postgresql', version: '42.3.3'
// https://mvnrepository.com/artifact/mysql/mysql-connector-java
implementation group: 'mysql', name: 'mysql-connector-java', version: '5.1.3'
// https://mvnrepository.com/artifact/org.beanshell/bsh
implementation group: 'org.beanshell', name: 'bsh', version: '2.0b5'
// ZK
//implementation 'org.zkoss.zk:zk:3.6.3'
// ADempiere Projects with additional features
// Dashboard Improvements (https://central.sonatype.com/artifact/io.github.adempiere/adempiere-dashboard-improvements)
implementation "${baseGroupId}:adempiere-dashboard-improvements:1.0.8"
// Point Of Sales Improvements (https://central.sonatype.com/artifact/io.github.adempiere/adempiere-pos-improvements)
implementation "${baseGroupId}:adempiere-pos-improvements:1.0.2"
// Business Processors (To Task's and Schedulers) (https://central.sonatype.com/artifact/io.github.adempiere/adempiere-business-processors)
implementation "${baseGroupId}:adempiere-business-processors:1.1.6"
// Engine as Queue (https://central.sonatype.com/artifact/io.github.adempiere/adempiere-kafka-connector)
implementation "${baseGroupId}:adempiere-kafka-connector:1.4.6"
// AWS3 Connector to use as File Storage (https://central.sonatype.com/artifact/io.github.adempiere/adempiere-s3-connector)
implementation "${baseGroupId}:adempiere-s3-connector:1.0.4"
// Third part access using JWT (https://central.sonatype.com/artifact/io.github.adempiere/adempiere-jwt-token)
implementation "${baseGroupId}:adempiere-jwt-token:1.0.3"
// https://mvnrepository.com/artifact/com.nimbusds/oauth2-oidc-sdk
implementation 'com.nimbusds:oauth2-oidc-sdk:9.35'
// https://mvnrepository.com/artifact/com.nimbusds/nimbus-jose-jwt
implementation 'com.nimbusds:nimbus-jose-jwt:9.22'
// https://mvnrepository.com/artifact/com.nimbusds/content-type
implementation 'com.nimbusds:content-type:2.2'
// https://mvnrepository.com/artifact/net.minidev/json-smart
implementation 'net.minidev:json-smart:2.4.8'
// https://mvnrepository.com/artifact/net.minidev/accessors-smart
implementation 'net.minidev:accessors-smart:2.4.8'
// Temporary projects
// Keycloak and Okta connector (Open-ID based) (https://central.sonatype.com/artifact/io.github.adempiere/adempiere-open-id-connector)
implementation "${baseGroupId}:adempiere-open-id-connector:1.0.0"
}
// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
sourceSets {
main {
java {
srcDirs 'src/main/webapp/WEB-INF/src'
srcDirs 'client/src/main/java'
}
resources {
srcDirs 'client/src/main/java'
srcDirs 'src/main/webapp'
srcDirs 'src/main/webapp/WEB-INF/src/'
include 'org/compiere/images/**.*'
include 'org/adempiere/plaf/icons/**.*'
include 'org/compiere/plaf/sounds/**.*'
include 'org/compiere/**.*'
include 'org/compiere/db/**.*'
include 'org/compiere/install/**.*'
include 'index.zul'
include 'theme.zs'
include 'timeout.zul'
include 'css/**.*'
include 'images/**.*'
include 'images/dark/**.*'
include 'theme/default/css/**.*'
include 'theme/default/images/**.*'
include 'theme/default/images/zk/**.*'
include 'theme/default/images/zkex/layout/**.*'
include 'theme/default/images/zweb/**.*'
include 'theme/default/images/zul/**.*'
include 'theme/default/images/zul/button/**.*'
include 'theme/default/images/zul/cal/**.*'
include 'theme/default/images/zul/common/**.*'
include 'theme/default/images/zul/grid/**.*'
include 'theme/default/images/zul/groupbox/**.*'
include 'theme/default/images/zul/input/**.*'
include 'theme/default/images/zul/menu/**.*'
include 'theme/default/images/zul/misc/**.*'
include 'theme/default/images/zul/msgbox/**.*'
include 'theme/default/images/zul/paging/**.*'
include 'theme/default/images/zul/popup/**.*'
include 'theme/default/images/zul/slider/**.*'
include 'theme/default/images/zul/sort/**.*'
include 'theme/default/images/zul/splt/**.*'
include 'theme/default/images/zul/tab/**.*'
include 'theme/default/images/zul/tree/**.*'
include 'theme/default/images/zul/vd/**.*'
include 'theme/default/images/zul/wnd/**.*'
include 'js/**.*'
include 'css/**.*'
include 'zul/**.*'
include 'org/adempiere/legacy/apache/ecs/ecs.properties'
include 'org/adempiere/version.properties'
}
}
}
startScripts.enabled = false
ext {
javaMainClass = "org.adempiere.Adempiere"
}
application {
// mainClass = javaMainClass
mainClass.set(javaMainClass)
}
jar {
manifest {
attributes(
"Main-Class": javaMainClass
)
}
}
task startJettyRunner(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'org.eclipse.jetty.runner.Runner'
//args '--path', "/${rootProject.name}", 'zkwebui/WEB-INF'
// to enable websockets
// args '--path', "/${rootProject.name}", 'jetty-dev-context.xml'
}
//applicationDistribution.into('bin') {
// from(startJettyRunner)
// fileMode = 0755
//}
// Create release for project
task createRelease(type: Copy) {
dependsOn build
from file("$buildDir/distributions/")
from file("$buildDir/libs/")
into file("$buildDir/release/")
doLast {
file('build/release/')
.listFiles({file -> file.isFile()} as FileFilter).sort()
.each { File file ->
ant.checksum file: file
}
}
}