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

Implemented asClickableFileUrl #18

Merged
merged 2 commits into from Jun 19, 2016
Merged

Implemented asClickableFileUrl #18

merged 2 commits into from Jun 19, 2016

Conversation

prestontim
Copy link
Contributor

Implemented local asClickableFileUrl method, since ConsoleRenderer has been removed in Gradle 2.14 (fixes #17).

@aaschmid
Copy link
Owner

Hi @prestontim, thanks for the PR. Is your issue urgent? Otherwise I will try to fix #16 as well within the next weeks.

@prestontim
Copy link
Contributor Author

@aaschmid - It's kind of urgent, but a week or two won't kill us. We need to get Gradle 2.14 up-and-running as soon as possible because we're trying to get Buildship 1.0.16 working (which requires Gradle 2.14). https://discuss.gradle.org/t/buildship-1-0-16-is-now-available/18056

@aaschmid
Copy link
Owner

OK, @prestontim. Will try to fix the other issue on the weekend. Thanks for your patience

try {
return new URI("file", "", path.toURI().getPath(), null, null).toString();
} catch (URISyntaxException e) {
throw UncheckedException.throwAsUncheckedException(e);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import of UncheckedException is missing as far as I could see and as this is Groovy it will fail at runtime at earliest.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to copy UncheckedException as well (fortunately it's the last link of the chain :D)

@prestontim
Copy link
Contributor Author

@aaschmid @bishiboosh Included copy of Gradle's UncheckedException. The oraclejdk8 build seems to be passing now, but the others are still failing. Not sure if that's something that I caused or if that's expected. Please let me know if there's anything else that I need to do.

@aaschmid
Copy link
Owner

@prestontim Thanks for the update, I would rather prefer using UndeclaredThrowableException, see https://docs.oracle.com/javase/7/docs/api/java/lang/reflect/UndeclaredThrowableException.html as it is part of the default JDK instead of copying then UncheckedException code. Sorry, but I can change that later on as well ;-)

Due to the travis.io jobs: I haven't had time to look at them but they are very fragile with no obvious case. If one is stable, the code at least is working :-)

@aaschmid aaschmid merged commit cc6e726 into aaschmid:master Jun 19, 2016
@aaschmid aaschmid self-assigned this Jun 19, 2016
@aaschmid aaschmid added this to the next version milestone Jun 19, 2016
aaschmid pushed a commit that referenced this pull request Jun 19, 2016
* Implmented asClickableFileUrl method since ConsoleRenderer has been removed (fixes #17).

* Include copy of Gradle's internal UncheckedException class
aaschmid added a commit that referenced this pull request Jun 19, 2016
* prestontim_master:
  Implemented asClickableFileUrl (#18)
@aaschmid
Copy link
Owner

aaschmid commented Jun 19, 2016

prestontim the new version is now be available, see https://github.com/aaschmid/gradle-cpd-plugin/releases/tag/v1.0.

Feedback welcome.

@aaschmid
Copy link
Owner

Unfortunately, the plugin does not show up on https://plugins.gradle.org/search?term=cpd, yet. We have to be patient I guess ...

@prestontim
Copy link
Contributor Author

@aaschmid The new version is working great! Thank you so much for your quick response.

@aaschmid
Copy link
Owner

you are welcome :-)

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

Successfully merging this pull request may close these issues.

Plugin Broken in Gradle 2.14
3 participants