Skip to content

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

@liujia13142324

Description

@liujia13142324

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')
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions