-
Notifications
You must be signed in to change notification settings - Fork 461
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
Gradle plugin does not allow Eclipse configuration file from web? #715
Comments
You are correct that
My recommendation for a case like this is to use blowdryer. If the URL you are downloading is guaranteed to be immutable (because it's a link to either a tag or a specific commit), then blowdryer will be a lot faster. Even if you don't use the whole plugin, you can still use the |
If you don't want to add an extra plugin dependency, you can simply fetch the file like so:
|
The advantage of |
@nedtwigg Hi Ned, I ran into similar issue when configuring |
|
@nedtwigg can't you make it as a closure? The idea is to run at the configure phase and later after clean again. So far I can only run it if I do ./gradlew clean && ./gradlew build as if I do together the clean removes the expanded file after configure phase. |
Feel free to submit a PR, if it doesn't break anything else I'd be happy to merge it. As an aside, I think you're targeting a strange usecase. You don't trust |
Doubt will have the time to look at the code and try to do a PR. Anyway clean is not mandatory and we don't even most of the times need to do it, but it's part of gradle lifecycle and when is executed together it fails, which is confusing for developers. |
I don't think this is a bug, I'm just unclear about the expected behavior here.
I'm using the gradle plugin with an eclipse configuration file. I would like this file to exist somewhere an external GitHub repo, and not in the project itself. If I'm understanding it right, I should be able to specify file by URL in some way.
I currently have this setup, where the input is a
File
.I do see this error message:
It looks like the check at
spotless/lib/src/main/java/com/diffplug/spotless/FileSignature.java
Line 131 in b77fef2
Can you help me identify what I'm missing here? Much appreciated.
The text was updated successfully, but these errors were encountered: