44 lines
1.6 KiB
Groovy
44 lines
1.6 KiB
Groovy
plugins {
|
|
id 'java-test-fixtures'
|
|
id 'ca.auxiliary-source-set'
|
|
id 'ca.jmh-benchmarks'
|
|
}
|
|
|
|
auxiliarySourceSets {
|
|
sourceSet('integrationTest') {
|
|
compilesAgainst 'main', 'testFixtures'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api project(':messaging:messaging-core-api')
|
|
api project(':messaging:messaging-schema-api')
|
|
api project(':messaging:messaging-policy')
|
|
api project(':messaging:messaging-transport-spi')
|
|
api project(':messaging:messaging-observability')
|
|
api project(':messaging:messaging-security')
|
|
api project(':messaging:messaging-admin-api')
|
|
|
|
// api: RabbitChannelPublisher and the mappers expose Spring AMQP's Message on public
|
|
// signatures, so a consumer implementing the seam needs the type on its compile classpath.
|
|
api 'org.springframework.amqp:spring-rabbit'
|
|
implementation 'org.springframework:spring-context'
|
|
|
|
// Test-only. The same adapter contract Kafka runs, so a guarantee can only be weakened by
|
|
// editing the contract rather than by an adapter quietly not implementing it.
|
|
testImplementation project(':messaging:messaging-testkit')
|
|
|
|
// Live-broker certification. The confirm-and-return ordering the adapter depends on is a
|
|
// property of AMQP, and only a real broker exhibits it.
|
|
integrationTestImplementation 'org.testcontainers:testcontainers-rabbitmq'
|
|
integrationTestImplementation 'org.testcontainers:testcontainers-junit-jupiter'
|
|
}
|
|
|
|
strictTestLanes {
|
|
lane('integrationTest') {
|
|
integration()
|
|
sourceSet = 'integrationTest'
|
|
description = 'Runs RabbitMQ broker integration contracts against a real container.'
|
|
}
|
|
}
|