-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
112 lines (94 loc) · 2.17 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
//buildscript {
// repositories {
// mavenCentral()
// jcenter()
// maven {
// url "https://plugins.gradle.org/m2/"
// }
// flatDir {
// dirs 'libs'
// }
// }
//}
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
flatDir {
dirs 'libs'
}
dependencies {
classpath name: 'shadow'
classpath name:'command-plugin'
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 = 1.8
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"
}
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 {
compileOnly name: 'command-annotations'
compileOnly name: 'bot-runtime'
compileOnly name: 'bot-api'
implementation name: 'i18n-api'
apt name: 'command-processor'
compileOnly group: 'org.apache.logging.log4j', name: 'log4j-core', version: "$loggerVersion"
testImplementation "org.testng:testng:$testNgVersion"
testImplementation name: 'bot-runtime'
testImplementation name: 'bot-api'
testCompile group: 'junit', name: 'junit', version: '4.12'
compile files('C:\\CustomPackages\\java_libs\\libs\\Catalano.Core.jar')
compile files('C:\\CustomPackages\\java_libs\\libs\\Catalano.Image.jar')
}
}