Skip to content

Fetch config files from remote repository/dependency/jar #227

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

Closed
nickmelis opened this issue Mar 21, 2018 · 2 comments
Closed

Fetch config files from remote repository/dependency/jar #227

nickmelis opened this issue Mar 21, 2018 · 2 comments
Labels

Comments

@nickmelis
Copy link

I'm using Spotless across several projects and I find myself in the situation where I have to copy/paste the config files (license, import order and format) in every single project in order to make it work consistently across the board.

It would be nice to be able to fetch config files from a remote location or read them from a dependency of some sort. I've tried fiddling with Gradle but there doesn't seem to be any easy solution to that.

@JLLeitschuh
Copy link
Member

I think this might be useful to you:
https://docs.gradle.org/current/userguide/plugins.html#sec:script_plugins

Script plugins are automatically resolved and can be applied from a script on the local filesystem or at a remote location. Filesystem locations are relative to the project directory, while remote script locations are specified with an HTTP URL. Multiple script plugins (of either form) can be applied to a given target.

@nedtwigg
Copy link
Member

nedtwigg commented Apr 5, 2018

Getting resources from a jar is being considered in #217.

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

3 participants