# Project specific properties

**URL:** <https://discuss.gradle.org/t/project-specific-properties/41595>\
**Category:** Help/Discuss\
**Created:** [December 2, 2021, 5:35pm UTC](https://discuss.gradle.org/t/project-specific-properties/41595 "2021-12-02T17:35:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![katzengreis](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@katzengreis](https://discuss.gradle.org/u/katzengreis)\
**Post date:** [December 2, 2021, 5:35pm UTC](https://discuss.gradle.org/t/project-specific-properties/41595/1 "2021-12-02T17:35:48Z")

</div>

hi

I have a multi project build. I have a property “abc” which is true by default.

root project → abc=false // do not the action

sub project A → abc=false // do not the action

sub project B → no property abc is set (which means true = do the action)

How can I achieve this with Gradle? sub-project-b/gradle.properties with no property set does not work with project.findProperty and project.getProperty (together with hasProperty)

---

<div class="post-metadata">

**Author:** ![jjustinic](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/jjustinic/32/9005_2.png) [@jjustinic](https://discuss.gradle.org/u/jjustinic)\
**Post date:** [December 3, 2021, 5:06am UTC](https://discuss.gradle.org/t/project-specific-properties/41595/2 "2021-12-03T05:06:47Z")

</div>

You can’t “set” a project property value to `true` by _not_ setting it when a parent project has the value set to `false` by default. Project properties are inherited from parent projects by subprojects.

Therefore, if you don’t set a value for `abc` in subproject B, `abc=false` would be inherited from the root project. You would explicitly need to set `abc=true` in B.

Otherwise, you could possibly prefix the properties so each is different. i.e. `project.hasProperty("${project.name}.abc")` or similar.
