-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
217 lines (202 loc) · 8.97 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
apply plugin: 'java'
apply plugin: 'war'
//apply plugin: "org.gretty"
// Provide convenience executables for trying out the examples.
apply plugin: 'application'
// Generate Visual Studio Code .vscode & .json project files
apply plugin: "visual-studio"
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.gretty:gretty:4.0.3"
}
}
apply plugin: "org.gretty"
repositories {
mavenCentral()
mavenLocal()
maven {
url = "https://maven.pkg.github.com/erpya/Repository"
credentials {
username = System.getenv("GITHUB_DEPLOY_USER") ?: System.properties['deploy.user']
password = System.getenv("GITHUB_DEPLOY_TOKEN") ?: System.properties['deploy.token']
}
}
}
def baseVersion = 'shw-aereo-1.0.3'
def baseGroupId = 'com.erpya'
sourceCompatibility = 1.11
def privateDependencyBaseVersion = "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'
// External Library
implementation "com.amazonaws:aws-java-sdk-s3:1.11.795"
implementation "joda-time:joda-time:2.8.1"
implementation "log4j:log4j:1.2.16"
implementation "com.fasterxml.jackson.core:jackson-databind:2.6.7.4"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.6.7"
implementation "com.rethinkdb:rethinkdb-driver:2.4.4"
implementation "org.codehaus.jettison:jettison:1.5.0"
implementation "com.github.instagram4j:instagram4j:2.0.6"
implementation "com.itextpdf:itext-pdfa:5.5.2"
implementation "com.lowagie:itext:2.1.7"
// Elastic Search
implementation "org.elasticsearch.client:elasticsearch-rest-high-level-client:7.9.1"
// Custom Libraries
//implementation "org.erpya.adempiere.tools:exchange-operation-system:${privateDependencyBaseVersion}-1.2.8"
}
// 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 'src/main/client'
srcDirs 'src/main/install'
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/**.*'
}
}
}
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/")
into file("$buildDir/release/")
doLast {
file('build/release/')
.listFiles({file -> file.isFile()} as FileFilter).sort()
.each { File file ->
ant.checksum file: file
}
}
}