Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
liujia13142324 opened this issue Jan 18, 2024 · 1 comment

Comments

@liujia13142324
Copy link

liujia13142324 commented Jan 18, 2024

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
Copy link

ThinkingMan007 commented Jan 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants