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

Add Gradle file support & format build file #278

Merged
merged 1 commit into from
Jan 15, 2022
Merged

Conversation

badsyntax
Copy link
Owner

@badsyntax badsyntax commented Jan 15, 2022

Refs #185

To enable Gradle file support in spotless:

apply plugin: 'groovy'
spotless {
  groovyGradle {
    target '*.gradle' // default target of groovyGradle
    greclipse()
  }
}

To enable in vs code, add to settings.json:

"[gradle]": {
  "editor.defaultFormatter": "richardwillis.vscode-spotless-gradle",
  "spotlessGradle.diagnostics.enable": true,
  "spotlessGradle.format.enable": true
}

@badsyntax badsyntax merged commit 9b0eb61 into master Jan 15, 2022
@badsyntax badsyntax deleted the gradle-file-support branch January 15, 2022 18:41
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

Successfully merging this pull request may close these issues.

1 participant