-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
115 lines (96 loc) · 2.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
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'
version '1.0.0'
}
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'
}
}
test {
useTestNG()
}
configurations {
apt
}
compileJava {
options.annotationProcessorPath = configurations.apt
dependsOn processResources
}
packageJson{
artifactName = project.name
group = "$groupName"
}
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 {
compile fileTree(include: ['*.jar'], dir: 'libs') //Added because otherwise Jar dependencies dont get compiled
testImplementation "org.testng:testng:$testNgVersion"
compileOnly name: 'command-annotations', version: '1+'
compileOnly name: 'command-plugin', version: '1+'
compileOnly name: 'bot-runtime', version: '1+'
compileOnly name: 'bot-api', version: '1+'
compileOnly name: 'common-security', version: '1+'
compileOnly name: 'command-processor', 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"
//compile 'com.googlecode.json-simple:json-simple:1.1.1'
testImplementation name: 'bot-runtime', version: '1+'
testImplementation name: 'bot-api', version: '1+'
implementation 'junit:junit:4.12'
testImplementation "org.testng:testng:$testNgVersion"
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.testng', name: 'testng', version: '6.9.10'
// External Dependencies
compile group: 'com.mashape.unirest', name: 'unirest-java', version: '1.3.1'
compile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.3.1'
// https://mvnrepository.com/artifact/com.microsoft.azure.cognitiveservices/azure-cognitiveservices-customvision-prediction
compile group: 'com.microsoft.azure.cognitiveservices', name: 'azure-cognitiveservices-customvision-prediction', version: '1.0.2-beta'
}
}