-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
121 lines (96 loc) · 3.05 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
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
flatDir {
dirs 'libs'
}
dependencies {
classpath name: 'shadow', version: '2+'
classpath name:'command-plugin', version: '1+'
classpath "net.ltgt.gradle:gradle-apt-plugin:0.20"
}
}
}
plugins {
id 'java'
}
configure(allprojects){
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: "com.automationanywhere.command-codegen"
ext {
groupName = 'com.automationanywhere'
testNgVersion = '6.14.3'
loggerVersion = '2.10.0'
jnaVersion = '5.3.1'
version '1.3.1'
}
group "$groupName"
sourceCompatibility = JavaVersion.VERSION_11
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
flatDir {
dirs 'libs'
}
}
configurations {
apt
}
compileJava {
options.annotationProcessorPath = configurations.apt
dependsOn processResources
}
packageJson{
artifactName = project.name
group = "$groupName"
author = ""
}
jar.dependsOn commandCodeGen
shadowJar {
//baseName = project.name
//classifier = null
mergeServiceFiles('META-INF/spring.*')
mergeServiceFiles('META-INF/services/java.sql.Driver')
zip64 = true
exclude 'META-INF/MANIFEST.MF'
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
rename '^OABWrapper.*\\.zip$', 'OABWrapper.zip'
}
dependencies {
// https://mvnrepository.com/artifact/org.twitter4j/twitter4j-core
implementation group: 'org.twitter4j', name: 'twitter4j-core', version: '4.0.7'
// https://mvnrepository.com/artifact/commons-io/commons-io
implementation group: 'commons-io', name: 'commons-io', version: '2.8.0'
implementation name: 'triggerlistener', version: '2+'
compileOnly name: 'command-annotations', version: '1+'
compileOnly name: 'bot-runtime', version: '1+'
compileOnly name: 'bot-api', version: '1+'
compileOnly name: 'common-security', version: '1+'
implementation name: 'i18n-api', version: '1+'
apt name: 'command-processor', version: '1+'
compileOnly group: 'org.apache.logging.log4j', name: 'log4j-core', version: "$loggerVersion"
testImplementation "org.testng:testng:$testNgVersion"
testImplementation name: 'bot-runtime', version: '1+'
testImplementation name: 'bot-api', version: '1+'
implementation group: 'org.apache.poi', name: 'poi-ooxml', version: '5.0.0'
implementation group: 'org.apache.poi', name: 'poi-scratchpad', version: '5.0.0'
//Add below dependencies to compile the samples
// implementation group: 'net.java.dev.jna', name: 'jna-platform', version: "$jnaVersion"
// compile group: 'org.springframework', name: 'spring-jms', version: '5.0.2.RELEASE'
// compile group: 'org.apache.activemq', name: 'activemq-all', version: '5.15.0'
// compile group: 'org.apache.commons', name: 'commons-dbcp2', version: '2.7.0'
// // // https://mvnrepository.com/artifact/com.h2database/h2
// compile group: 'com.h2database', name: 'h2', version: '1.4.200'
}
}