Skip to content

Make spring-test available to compile classpath of consumers of spring-boot-test #39901

@xenoterracide

Description

@xenoterracide
/home/xeno/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-test-autoconfigure/3.2.3/ea2e1778142fc8a05bd9325b433b13fe0a6845c1/spring-boot-test-autoconfigure-3.2.3.jar(/org/springframework/boot/test/autoconfigure/orm/jpa/DataJpaTest.class): warning: Cannot find annotation method 'value()' in type 'BootstrapWith': class file for org.springframework.test.context.BootstrapWith not found

not doing anything special here

@DataJpaTest
public class JpaAggregateTest {

since you're not using standard library definitions, maybe you need something like optionalApi either way the gradle metadata generated could be fixed by having this exposed as some kind of api. At least I think, the whole optional thing makes me uncertain of what's being generated for Gradle's metadata, and I'm not looking at that atm.

https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot-test-autoconfigure/build.gradle#L34

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions