Netflix / Hystrix

Hystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services and 3rd party libraries, stop cascading failure and enable resilience in complex distributed systems where failure is inevitable.
23.98k stars 4.7k forks source link

Build Failure on Windows Due to Unconfigured 'destinationDir' in ClojureCompile Task #2052

Open liujia13142324 opened 5 months ago

liujia13142324 commented 5 months ago

This gradle project failed to build on Windows. I received the following message "A problem was found with the configuration of task ':hystrix-clj:compileClojure' (type 'ClojureCompile'). In plugin 'nebula.plugin.clojuresque.ClojureCommonPlugin' type 'nebula.plugin.clojuresque.tasks.ClojureCompile' property 'destinationDir' doesn't have a configured value.."

I noticed the code below in this plugin. It matches the output directory using the pattern 'java/main'. However, on Windows, the file separator is '\', so it always fails to build on Windows but builds successfully on Linux."

private File findOutputDir(SourceSet set) { return set.output.classesDirs.files.find { it.path.contains('clojure/main') || it.path.contains('java/main') } }

ThinkingMan007 commented 5 months ago

好的,我已收到。