# "Configuration was resolved without accessing the project in a safe manner", but there's no cross-project access

**URL:** <https://discuss.gradle.org/t/configuration-was-resolved-without-accessing-the-project-in-a-safe-manner-but-theres-no-cross-project-access/33264>\
**Category:** Help/Discuss\
**Created:** [September 23, 2019, 12:36am UTC](https://discuss.gradle.org/t/configuration-was-resolved-without-accessing-the-project-in-a-safe-manner-but-theres-no-cross-project-access/33264 "2019-09-23T00:36:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ned\_Twigg](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/ned_twigg/32/1516_2.png) [@Ned\_Twigg](https://discuss.gradle.org/u/Ned_Twigg)\
**Post date:** [September 23, 2019, 12:36am UTC](https://discuss.gradle.org/t/configuration-was-resolved-without-accessing-the-project-in-a-safe-manner-but-theres-no-cross-project-access/33264/1 "2019-09-23T00:36:56Z")

</div>

[Previously](https://discuss.gradle.org/t/correct-way-to-resolve-a-configuration-from-another-project-in-5-x/30115), I struggled with the new warnings about resolving configurations. I’ve never understood what the correct usage of the API is. [The docs](https://docs.gradle.org/5.6/userguide/troubleshooting_dependency_resolution.html?&_ga=2.117733707.317799008.1569197261-880271121.1563829194#sub:configuration_resolution_constraints) “generally” describe what you should do, but here I have a case which I believe meets all the requirements, and yet I’m getting the warning anyway:

> <https://github.com/mnlipp/jdrupes-mdoclet/blob/50f4adc78570193f134e82c0c1dc6be09f39541b/integrations/gradle-plugin/src/org/jdrupes/mdoclet/integrations/gradle/MDocletPlugin.groovy#L28-L49>

This is causing a warning on line 44 with Gradle 5.6. Looking at the suggestions from the docs:

- A task from one project directly resolves a configuration in another project. **no cross-project**
- A task specifies a configuration from another project as an input file collection. **no cross-project**
- A build script for a project resolves a configuration in another project during evaluation. **no cross-project**
- A configuration is resolved in a user-managed thread (i.e., a thread not managed by Gradle). **uses gradle’s own afterProject callback**

GitHub issue for this particular example: [https://github.com/mnlipp/jdrupes-mdoclet/issues/3](https://github.com/mnlipp/jdrupes-mdoclet/issues/3)

What _are_ the rules for resolving a configuration?
