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

A problem was found with the configuration of task ':spotlessJavaCheck'. /build/spotless/spotlessJava' specified for property 'spotlessOutDirectory' does not exist. #814

Closed
4 of 6 tasks
compilead opened this issue Mar 8, 2021 · 6 comments
Labels

Comments

@compilead
Copy link

compilead commented Mar 8, 2021

If you are submitting a bug, please include the following:

  • summary of problem
    Task :spotlessJavaCheck FAILED
    What went wrong:
    A problem was found with the configuration of task ':spotlessJavaCheck'.
    Directory '......./build/spotless/spotlessJava' specified for property 'spotlessOutDirectory' does not exist.
  • gradle or maven version
    gradle-5.6
  • spotless version
    spotless_version = '5.8.2'
  • operating system and version
  • copy-paste your full Spotless configuration block(s), and a link to a public git repo that reproduces the problem if possible
    spotless {
    format 'misc', {
    target '/*.gradle', '/.md', '/.gitignore'
    trimTrailingWhitespace()
    indentWithSpaces()
    endWithNewline()
    }
    java {
    target project.fileTree(project.rootDir) {
    include '
    /
    .java'
    exclude 'build/generated/**/.'
    }
    googleJavaFormat().aosp()
    }
    }
  • copy-paste the full content of any console errors emitted by gradlew spotless[Apply/Check] --stacktrace

If you're just submitting a feature request or question, no need for the above.

@compilead compilead changed the title A problem was found with the configuration of task ':spotlessJavaCheck'../build/spotless/spotlessJava' specified for property 'spotlessOutDirectory' does not exist. A problem was found with the configuration of task ':spotlessJavaCheck'. /build/spotless/spotlessJava' specified for property 'spotlessOutDirectory' does not exist. Mar 8, 2021
@compilead
Copy link
Author

Because of this Pipeline stage is failing for code format check... can anyone help me resolving this issue.

@nedtwigg
Copy link
Member

nedtwigg commented Mar 8, 2021

Dupe of #741, fixed in 5.9.0 (you are using 5.8.2)

@compilead
Copy link
Author

compilead commented Mar 10, 2021

Hi @nedtwigg,

Even after updating spotless version to 5.9.0 we are getting following issue:

Task :spotlessJava
Exception caught during execution of command '[<>/git/2.22.0/bin/git, config, --system, --edit]' in
'/<
>/git/2.22.0/bin', return code '128', error message
'fatal: Invalid path '/<*>/git/2.22.0/etc': No such file or directory

There is no directory etc. I am confused is it related to soptless or what ?

@nedtwigg
Copy link
Member

That's a very strange error trace. Maybe try --stacktrace?

@nedtwigg nedtwigg reopened this Mar 10, 2021
@compilead
Copy link
Author

when i run command >> ./gradlew --stacktrace spotlessJava getting following op:
BUILD SUCCESSFUL in 968ms
1 actionable task: 1 up-to-date

@nedtwigg
Copy link
Member

Huzzah, it's fixed! ;-) If you would like further help, it's easier to read your debuginfo if you read this. As of now, it looks to me like 5.9.0 did in fact fix the issue. If that isn't true, please provide well-formatted, readable details.

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

No branches or pull requests

2 participants