forked from moderakh/cosmosdb-benchmark-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
148 lines (123 loc) · 4.85 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
plugins {
id "com.github.johnrengelman.shadow" version "4.0.4"
}
wrapper {
gradleVersion = '5.1' //version required
}
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
ext {
cosmosV4Version = project.hasProperty('cosmosV4Version') ? project.getProperty('cosmosV4Version') : '4.17.0'
cosmosEncryptionV4Version = project.hasProperty('cosmosEncryptionV4Version') ? project.getProperty('cosmosEncryptionV4Version') : '1.0.0-beta.6'
cosmosV3Version = project.hasProperty('cosmosV3Version') ? project.getProperty('cosmosV3Version') : '3.7.5'
cosmosV2Version = project.hasProperty('cosmosV2Version') ? project.getProperty('cosmosV2Version') : '2.6.11'
}
group = 'com.adobe.platform.core.identity.services'
version = "1.2-cosmos-beta.1"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
// maven {
// url "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-java/maven/v1"
// }
mavenLocal()
jcenter()
mavenCentral()
}
}
project(':benchmark') {
apply plugin: 'com.github.johnrengelman.shadow'
dependencies {
compile project(':v4-client')
compile project(':v4-encryption')
compile project(':v3-client')
compile project(':async-client')
compile project(':sync-client')
compile project(':test-data-generator')
compile "org.openjdk.jmh:jmh-core:1.21"
annotationProcessor "org.openjdk.jmh:jmh-generator-annprocess:1.21"
}
jar { manifest { attributes "Main-Class": "org.openjdk.jmh.Main" } }
shadowJar {
classifier = 'shadow'
append 'reference.conf'
}
task jmh(type: JavaExec, dependsOn: [':benchmark:clean', ':benchmark:shadowJar']) {
main="-jar"
doFirst {
if (System.getProperty("jmhArgs")) {
args System.getProperty("jmhArgs").split(',')
}
args = [shadowJar.archivePath, *args]
}
}
javadoc { enabled = false }
}
project(':client-common'){
dependencies {
compile "com.typesafe:config:1.3.3"
compile "org.slf4j:slf4j-api:1.7.6"
compile "org.slf4j:slf4j-log4j12:1.7.6"
compile "log4j:log4j:1.2.17"
}
}
project(':async-client') {
dependencies {
compile project(':client-common')
compile "com.microsoft.azure:azure-cosmosdb:${cosmosV2Version}"
// compile group: 'io.netty', name: 'netty-tcnative', version: '2.0.28.Final', classifier: 'linux-x86_64'
// compile "io.netty:netty-tcnative-boringssl-static:2.0.28.Final"
}
}
project(':v4-client') {
dependencies {
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
compile project(':client-common')
compile ("com.azure:azure-cosmos:${cosmosV4Version}") {
// Including tcnative will break v2 async client, exclude it for now until we fix in v2
// https://github.com/Azure/azure-sdk-for-java/issues/16617
// exclude group:'io.netty', module:'netty-tcnative-boringssl-static'
}
// compile "io.netty:netty-tcnative-boringssl-static:2.0.28.Final"
// compile group: 'io.netty', name: 'netty-tcnative', version: '2.0.28.Final', classifier: 'linux-x86_64'
// compile group: 'software.amazon.cryptools', name: 'AmazonCorrettoCryptoProvider', version: '1.3.0', classifier: 'linux-x86_64'
}
}
project(':v4-encryption') {
dependencies {
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
compile project(':client-common')
compile("com.azure:azure-cosmos-encryption:${cosmosEncryptionV4Version}") {
exclude group: 'com.azure', module: 'azure-cosmos'
}
compile("com.azure:azure-identity:1.3.3") {
exclude group: 'com.azure', module: 'azure-core'
exclude group: 'com.azure', module: 'azure-core-http-netty'
}
compile project(':v4-client')
}
}
project(':v3-client') {
dependencies {
compile project(':client-common')
compile "com.microsoft.azure:azure-cosmos:${cosmosV3Version}"
// compile group: 'io.netty', name: 'netty-tcnative', version: '2.0.28.Final', classifier: 'linux-x86_64'
// compile "io.netty:netty-tcnative-boringssl-static:2.0.28.Final"
// compile group: 'software.amazon.cryptools', name: 'AmazonCorrettoCryptoProvider', version: '1.3.0', classifier: 'linux-x86_64'
}
}
project(':sync-client') {
dependencies {
compile project(':client-common')
compile "com.microsoft.azure:azure-documentdb:2.6.1"
// compile "io.netty:netty-tcnative-boringssl-static:2.0.28.Final"
compile "io.vavr:vavr:0.9.2"
}
}
project(':test-data-generator'){
dependencies {
compile project(':async-client')
compile project(':v4-encryption')
}
}