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

Use defaultDependencies for testCompile. #86

Closed
wants to merge 1 commit into from
Closed

Use defaultDependencies for testCompile. #86

wants to merge 1 commit into from

Conversation

thewildllama
Copy link

For most of the projects I touch, we have to use Gradle's Idea plugin
(instead of importing a project into IntelliJ). Unfortunately, the
plugin fails to apply in my Jenkins plugin project with the message:

:*************:ideaModule (Thread[main,5,main]) completed.
Took 1.104 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':*************:ideaModule'.
> Cannot change dependencies of configuration ':*************:testCompile'after it has been included in dependency resolution. Use 'defaultDependencies' instead of 'beforeResolve' to specify default dependencies for a configuration.

Fortunately enough, Gradle's advice worked like a charm!

For most of the projects I touch, we have to use Gradle's Idea plugin
(instead of importing a project into IntelliJ). Unfortunately, the
plugin fails to apply in my Jenkins plugin project with the message:

```
:*************:ideaModule (Thread[main,5,main]) completed.
Took 1.104 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':*************:ideaModule'.
> Cannot change dependencies of configuration ':*************:testCompile'after it has been included in dependency resolution. Use 'defaultDependencies' instead of 'beforeResolve' to specify default dependencies for a configuration.
```

Fortunately enough, Gradle's advice worked like a charm!
@thewildllama
Copy link
Author

ping @daspilker - Can you take a look, please?

@Argelbargel
Copy link

ping @daspilker - me too would really like to see this merged so that we can use the plugin with newer gradle versions

@thewildllama
Copy link
Author

@Argelbargel - Maybe vote on the issue as well? https://issues.jenkins-ci.org/browse/JENKINS-43739

@gezerk
Copy link

gezerk commented Sep 27, 2017

@daspilker anything I can do to help get this merged? I would greatly appreciate it.

@aheritier
Copy link
Member

@daspilker @abayer WDYT about this PR? @gezerk is interested by this change. @gezerk did you test it ?

@daspilker
Copy link
Member

This PR is obsolete due to the changes made in #87.

@daspilker daspilker closed this Oct 10, 2017
@aheritier
Copy link
Member

thanks @daspilker

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.

None yet

5 participants