35 lines
1.1 KiB
Groovy
35 lines
1.1 KiB
Groovy
apply from: "$rootDir/gradle/instrumentation.gradle"
|
|
apply plugin: 'org.unbroken-dome.test-sets'
|
|
|
|
muzzle {
|
|
pass {
|
|
group = "org.mongodb"
|
|
module = "mongo-java-driver"
|
|
versions = "[3.7,)"
|
|
assertInverse = true
|
|
}
|
|
}
|
|
|
|
testSets {
|
|
latestDepTest {
|
|
dirName = 'test'
|
|
}
|
|
}
|
|
|
|
// this is needed to force mongo-common test classes to be built first
|
|
// so that the dependency below on its test sourceSet will work
|
|
compileTestJava.dependsOn tasks.getByPath(':instrumentation:mongo:mongo-common:testClasses')
|
|
|
|
dependencies {
|
|
implementation(project(':instrumentation:mongo:mongo-common'))
|
|
|
|
// a couple of test attribute verifications don't pass until 3.8.0
|
|
compileOnly group: 'org.mongodb', name: 'mongo-java-driver', version: '3.8.0'
|
|
|
|
testImplementation project(':instrumentation:mongo:mongo-common').sourceSets.test.output
|
|
testImplementation group: 'de.flapdoodle.embed', name: 'de.flapdoodle.embed.mongo', version: '1.50.5'
|
|
|
|
testImplementation group: 'org.mongodb', name: 'mongo-java-driver', version: '3.8.0'
|
|
latestDepTestImplementation group: 'org.mongodb', name: 'mongo-java-driver', version: '+'
|
|
}
|