# Newbie alert! Trying to understand gradle

**URL:** https://discuss.gradle.org/t/newbie-alert-trying-to-understand-gradle/26195
**Category:** Help/Discuss
**Created:** [March 12, 2018, 4:35am UTC](https://discuss.gradle.org/t/newbie-alert-trying-to-understand-gradle/26195 "2018-03-12T04:35:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![bose1989](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@bose1989](https://discuss.gradle.org/u/bose1989)
#### Post date: [March 12, 2018, 4:35am UTC](https://discuss.gradle.org/t/newbie-alert-trying-to-understand-gradle/26195/1 "2018-03-12T04:35:51Z")

</div>

Hey, I’m trying to understand what is the deal with detachedConfiguration. I’ve added the dependency

runtime(‘com.oracle:ojdbc7:12.1.0.2’) but while gradle is trying to resolve the dependency, I see the below for the build.

Resolve dependencies :runtimeClasspath 52m 54s 949ms  
Resolve dependencies :detachedConfiguration49 26m 16s 758ms  
Resolve dependencies :detachedConfiguration50   
Resolve dependencies :detachedConfiguration51 1ms  
Resolve dependencies :detachedConfiguration52   
Resolve dependencies :detachedConfiguration53 21s 23ms  
Resolve artifact ojdbc7.pom (com.oracle:ojdbc7:12.1.0.2)

So what are these detachedConfiguration?

I’m a noob trying to figure out stuff.  
Thanks in advance

---

<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: [March 12, 2018, 6:57am UTC](https://discuss.gradle.org/t/newbie-alert-trying-to-understand-gradle/26195/2 "2018-03-12T06:57:41Z")

</div>

There’s a `detachedConfiguration(dependencies)` method on the [ConfigurationContainer](https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.ConfigurationContainer.html#N169BD). These are often used by plugins that internally need to resolve a dependency to do their work. As these configurations are an implementation detail of something in the build, they’re not added to `ConfigurationContainer` like the ones you’re expected to add dependencies to for your application.

---

<div class="post-metadata">

### Author: ![bose1989](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@bose1989](https://discuss.gradle.org/u/bose1989)
#### Post date: [March 12, 2018, 10:00am UTC](https://discuss.gradle.org/t/newbie-alert-trying-to-understand-gradle/26195/3 "2018-03-12T10:00:41Z")

</div>

Thanks a tonne for answering that, So that means I need to revisit the plugins that have been added to my gradle? Also is it possible to exclude this, Cause as you see these steps take a lot of time during my first gradle build. It takes like an hour for resolving each of the detachedConfiguration and I can’t figure out why.

---

<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: [March 12, 2018, 3:14pm UTC](https://discuss.gradle.org/t/newbie-alert-trying-to-understand-gradle/26195/4 "2018-03-12T15:14:48Z")

</div>

You can’t disable resolution of the detached configurations. These are hard dependencies for the code that uses them. If you don’t need what is creating them and configuring them, removing them is the answer. However, even the resolution of your `runtimeClasspath` seems ridiculously long. Are you in an extremely bandwidth limited environment?

---

<div class="post-metadata">

### Author: ![bose1989](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@bose1989](https://discuss.gradle.org/u/bose1989)
#### Post date: [March 13, 2018, 10:47am UTC](https://discuss.gradle.org/t/newbie-alert-trying-to-understand-gradle/26195/5 "2018-03-13T10:47:42Z")

</div>

Hey Justin,

I get your point. The organisation has good bandwidth, although I’d assume it’s something to do with the proxy. I tried adding proxy to the IDE but it still takes time? Would it make sense if I post my build.gradle file here and see if I messed up something with the dependency plugins?

---

<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: [March 13, 2018, 4:16pm UTC](https://discuss.gradle.org/t/newbie-alert-trying-to-understand-gradle/26195/6 "2018-03-13T16:16:47Z")

</div>

The more details you can provide to help with understanding what you have and what could impact what you’re seeing, the better. Although, it seems most likely we will only be able confirm what it’s not as reproducing your environment at the organization won’t be possible.
