-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
115 lines (90 loc) · 2.67 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'
}
dependencies {
classpath name: 'shadow', version: '6+'
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.12.1'
jnaVersion = '5.3.1'
version '4.0.9'
}
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
options.compilerArgs << '-parameters'
dependsOn processResources
}
packageJson{
artifactName = project.name
group = "$groupName"
author = "Stefan Karsten"
}
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'
relocate 'com.google.common', 'shadow.com.google.common'
//relocate 'io.netty','shadow.io.netty'
}
dependencies {
implementation group: 'org.seleniumhq.selenium', name: 'selenium-chrome-driver', version: '4.0.0-beta-2'
implementation group: 'org.seleniumhq.selenium', name: 'selenium-edge-driver', version: '4.0.0-beta-2'
implementation group: 'org.seleniumhq.selenium', name: 'selenium-support', version: '4.0.0-beta-2'
implementation group: 'org.jsoup', name: 'jsoup', version: '1.14.3'
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: 'net.java.dev.jna', name: 'jna-platform', version: "$jnaVersion"
}
}