# Accessing project data from RuleSource

**URL:** <https://discuss.gradle.org/t/accessing-project-data-from-rulesource/20849>\
**Category:** Help/Discuss\
**Created:** [December 16, 2016, 5:14pm UTC](https://discuss.gradle.org/t/accessing-project-data-from-rulesource/20849 "2016-12-16T17:14:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xykivo](https://avatars.discourse-cdn.com/v4/letter/x/bc8723/32.png) [@xykivo](https://discuss.gradle.org/u/xykivo)\
**Post date:** [December 16, 2016, 5:14pm UTC](https://discuss.gradle.org/t/accessing-project-data-from-rulesource/20849/1 "2016-12-16T17:14:26Z")

</div>

I had to access project data, such as version, find project other projects the current project depends on, etc.

The RuleSource does not allow you to get any project related data.  
I used the following workaround - [http://mrhaki.blogspot.ca/2016/11/gradle-goodness-getting-project.html](http://mrhaki.blogspot.ca/2016/11/gradle-goodness-getting-project.html)

It would be nice if this (or a similar approach) was formalized, or better yet, if the RuleSource allows access to the project.

Thanks
