-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
build.gradle
76 lines (64 loc) · 2.6 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
/*
* Copyright 2008-present MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
description = "A Reactive Streams implementation of the MongoDB Java driver"
archivesBaseName = 'mongodb-driver-reactivestreams'
dependencies {
api project(path: ':bson', configuration: 'default')
api project(path: ':driver-core', configuration: 'default')
api 'org.reactivestreams:reactive-streams:1.0.3'
implementation platform("io.projectreactor:reactor-bom:$projectReactorVersion")
implementation 'io.projectreactor:reactor-core'
testImplementation project(':bson').sourceSets.test.output
testImplementation project(':driver-sync')
testImplementation project(':driver-sync').sourceSets.test.output
testImplementation project(':driver-core').sourceSets.test.output
testImplementation 'org.reactivestreams:reactive-streams-tck:1.0.3'
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'org.mockito:mockito-junit-jupiter:3.5.13'
testRuntimeOnly project(path: ':driver-core', configuration: 'consumableTestRuntimeOnly')
}
sourceSets {
test.groovy.srcDirs += ['src/examples']
}
test {
exclude 'tour/**'
}
// Reactive Streams TCK uses TestNG, and Gradle can't run TestNG and JUnit in the same run.
task tckTest(type: Test) {
useTestNG()
scanForTestClasses = false
classpath = sourceSets.test.runtimeClasspath
testClassesDirs = sourceSets.test.output.classesDirs
binResultsDir = file("$buildDir/$name-results/binary")
reports {
html.destination = file("$buildDir/reports/$name")
junitXml.destination = binResultsDir.parentFile
}
maxParallelForks = 1
}
ext {
pomName = 'The MongoDB Reactive Streams Driver'
}
afterEvaluate {
jar.manifest.attributes['Automatic-Module-Name'] = 'org.mongodb.driver.reactivestreams'
jar.manifest.attributes['Bundle-SymbolicName'] = 'org.mongodb.driver-reactivestreams'
jar.manifest.attributes['Import-Package'] = [
'org.bson.*',
'com.mongodb.crypt.capi.*;resolution:=optional',
'com.mongodb.*',
'reactor.core.*',
].join(',')
}