Skip to content

feat: supply Eclipse config from string#2337

Closed
tomasbjerre wants to merge 2 commits intodiffplug:mainfrom
tomasbjerre:feature/eclipse-config-without-file
Closed

feat: supply Eclipse config from string#2337
tomasbjerre wants to merge 2 commits intodiffplug:mainfrom
tomasbjerre:feature/eclipse-config-without-file

Conversation

@tomasbjerre
Copy link
Copy Markdown
Contributor

@tomasbjerre tomasbjerre commented Nov 10, 2024

This allows a user to supply the configuration, needed by Eclipse formatter, as a string.

I have a precompiled script plugin that applies Spotless Gradle plugin with our Eclipse config. It would be easier if I did not have to supply a file in the configuration but just the content

A file means I have to have that file available for the plugin when it runs, actually it seems it is needed both during configuration and when the Spotless task runs. With content I can just read the content from some classpath resource in my precompiled script.

Would also be nice to be able to supply the configuration in XML format, but that can probably be a future PR.

@nedtwigg
Copy link
Copy Markdown
Member

I would advise blowdryer for this.

@tomasbjerre
Copy link
Copy Markdown
Contributor Author

I will try to find some time to complete this PR.

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.

2 participants