Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Gradle doesn't transfer test resources that are specific to a package because it assumes that all test resources are common to all tests in the project. Therefore, if there are test resources specific to a package, they should be placed in the common test resources directory.

This is because Gradle uses a convention-based approach for locating and managing the test resources. By default, all test resources are expected to reside in the src/test/resources directory. If tests need to use resources that are specific to a package, they should be organized in subdirectories under src/test/resources.

By following this convention, Gradle makes it easier and more efficient to manage test resources and ensures that they are available to all tests in the project.