tramai-spring-consumer-selective
Version: n/a — internal build fixture, not a published artifact
Status: Internal (testing support)
Role: Selective-consumer compile evidence for the published Spring artifacts.
Purpose
Where tramai-spring-consumer-boundary proves what a consumer does not get, this fixture proves that a consumer that selects a specific subset still compiles. It declares the Spring facade plus one provider adapter — the "I only want the OpenAI adapter" case — and serves as API-compatibility evidence for that shape.
Like its boundary counterpart it has no production source and is never published.
What it provides
| Aspect | Detail |
|---|---|
| Production source | None — fixture only, empty API dump |
| Layer / publishability | testing-support, internal — excluded from publication |
| Evidence | ConsumerSelectiveDependencyTest |
Dependencies
No published coordinate: this fixture is internal compile evidence. Its TramAI dependencies are exactly the subset a selective consumer would declare:
// tramai-spring-consumer-selective/build.gradle.kts
dependencies {
implementation(project(":tramai-spring"))
implementation(project(":tramai-spring-provider-openai"))
}
Combined with the boundary fixture, the pair pins the intended consumer contract: selecting an adapter adds exactly that adapter, and nothing else rides along.
When this module matters to you
- You are preparing a release and need the consumer-shape checks to pass.
- You are changing API in a Spring artifact and want to know whether the selective consumer still compiles.
When it does not
- You are writing an application: this module is not an artifact you depend on. Start from tramai-spring-boot-starter.
- You want guidance on which adapters to add — see tramai-spring-provider-openai, tramai-spring-provider-anthropic and tramai-spring-provider-ollama.
