PathsClassLoader should not cache jars on the local filesystem
Addendum: the current solution to this isn't behaving as expected. Please note all three Acceptance Criteria.
As a developer working with web3j/braid for my own cordapps, I should be able to iterate with builds of my project and generate the appropriate OpenAPI definition. Currently, Braid aggressively caches by-name my local files into ~/.downloaded-cordapps
which means that after my first iteration of the build of my Cordapp, Braid only uses the cached version and never updates it.
Acceptance Criteria
-
if a jar is on the local filesystem we shouldn't be copying it to the cache directory
-
If the jar is a versioned build then download it if it does not already exist
-
If the jar is a snapshot (ends with
SNAPSHOT
) build or does not have any versioning information, then always download (even if we have it already)