simplify cache file retrieval
All checks were successful
Publish to snapshot maven / build (push) Successful in 43s
All checks were successful
Publish to snapshot maven / build (push) Successful in 43s
This commit is contained in:
parent
8c05c42321
commit
0afabf7835
|
@ -40,7 +40,7 @@ object CachingHttpClient {
|
|||
|
||||
private fun getCacheFile(uri: URI): Path {
|
||||
val path = NonsenseGradlePlugin.nonsenseCacheDir.resolve("httpCache")
|
||||
.resolve(uri.toString().substring(uri.scheme.length + 3))
|
||||
.resolve(uri.host).resolve(uri.rawPath) // Use rawPath to ensure ASCII compat (since this will be a filesystem dir)
|
||||
path.createParentDirectories()
|
||||
return path
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue