title: Gradle: configuration runtime declares a dependency on configuration default which is not declared in the module descriptor for
body: <p>Can you tell me why when I run gradle I get this error: </p>
  
  <pre><code>Error:Module version trestGradle:trestGradle:1.0-SNAPSHOT, 
  configuration 'runtime' declares a dependency on 
  configuration 'default' which is not declared in the module 
  descriptor for it.develop:myLib:1.0.0"
  </code></pre>
  
  <p>What is needed to be declared on the ivy.xml (module descriptor)?</p>
  
  <ul>
  <li><p>MyLib is on an internal ivy repository</p></li>
  <li><p>I checked:credentials, ivy url and the pattern</p></li>
  </ul>
  
  <p>build.gradle:</p>
  
  <pre><code>group 'trestGrad'
  version '1.0-SNAPSHOT'
  
  apply plugin: 'java'
  
  sourceCompatibility = 1.5
  
  configurations {
      compile
  }
  
  repositories {
      ivy {
          url = 'http://example.com/artifactory/cst'
          credentials {
              username = "user"
              password = "pass123"
          }
          layout('pattern') {
              // Pattern to resolve Ivy descriptor files.
              ivy '[organization]/[module]/[revision]/[type]s/ivy.xml'
              // Pattern to resolve files.
              artifact '[organization]/[module]/[revision]/[type]s/[module].[ext]'
          }
      }
  }
  
  dependencies {
      compile "it.develop:myLib:1.0.0"
  }
  </code></pre>