# A dependency on configuration 'default'

**URL:** <https://discuss.gradle.org/t/a-dependency-on-configuration-default/7005>\
**Category:** Old Forum Archive\
**Created:** [May 18, 2012, 4:28am UTC](https://discuss.gradle.org/t/a-dependency-on-configuration-default/7005 "2012-05-18T04:28:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![luke\_daley](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/luke_daley/32/9890_2.png) [@luke\_daley](https://discuss.gradle.org/u/luke_daley)\
**Post date:** [May 18, 2012, 11:19am UTC](https://discuss.gradle.org/t/a-dependency-on-configuration-default/7005/2 "2012-05-18T11:19:00Z")

</div>

The problem is that “default” is a keyword in Groovy (and Java).

You can use the following code:

```gradle
dependencies {
  it."default"
}

```

This works because

```gradle
dependencies {
  default
}

```

Is the same as:

```gradle
dependencies.default

```

When you use the closure version, the ‘dependencies’ object is passed to the closure as the implicit argument, and Groovy supports using strings as property names for situations like this (and others).

---

_[View the full topic](https://discuss.gradle.org/t/a-dependency-on-configuration-default/7005)._
