-
I'm upgrading from mill I'm using Now with the new version it returns a path in a jar of one of my dependencies (e.g. My project structure is as follows:
What am I missing? Any pointers would be very appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@reidrac It seems like the the classpath ordering changed which would cause the resource path to resolve differently. In general, you shouldn't rely on classpath ordering, since we can't really guarantee it remains stable over time. In Mill 0.12.0, we provide a def forkEnv = super.forkEnv() ++
Map("MILL_TEST_RESOURCE_FOLDER" -> resources().map(_.path).mkString(";")), |
Beta Was this translation helpful? Give feedback.
@reidrac It seems like the the classpath ordering changed which would cause the resource path to resolve differently. In general, you shouldn't rely on classpath ordering, since we can't really guarantee it remains stable over time.
In Mill 0.12.0, we provide a
sys.env("MILL_TEST_RESOURCE_FOLDER")
environment variable that you can use. For 0.11.12, you can emulate it via the following override