title: How to add ojdbc7 to Java web app by Gradle?
body: <p>My context:</p>
  
  <ul>
  <li>I build a Java web application what based on Spring Boot
  1.3.5.RELEASE . </li>
  <li>I try to add <code>ojdcb</code> to dependencies list but not success. </li>
  <li>I know that Oracle has own Maven repository at
  <code>http://maven.oracle.com</code></li>
  </ul>
  
  <p>This is my <code>build.gradle</code> file, Let focus at line 4, 5, 6, 36:</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
          maven {
              url ("https://maven.oracle.com")
          }
      }
      dependencies {
          classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE")
  
      }
  }
  
  apply plugin: 'war'
  apply plugin: 'idea'
  apply plugin: 'spring-boot'
  
  jar {
      baseName = 'erp'
      version = '1.0.0'
  }
  
  repositories {
      mavenCentral()
  }
  
  sourceCompatibility = 1.8
  targetCompatibility = 1.8
  
  dependencies {
      compile("org.springframework.boot:spring-boot-starter-thymeleaf")
      //compile("org.springframework.boot:spring-boot-starter-security")
      providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
      compile("org.springframework.boot:spring-boot-starter-data-jpa")
      compile("org.hibernate:hibernate-core")
      compile("com.oracle.jdbc:ojdbc7:12.1.0.2")
      testCompile("junit:junit")
  }
  </code></pre>
  
  <p>IntelliJ IDEA 2016 notice error:</p>
  
  <blockquote>
    <p>Warning:<i><b>root project 'erp': Web Facets/Artifacts will not be
    configured properly</b> Details:
    org.gradle.api.artifacts.ResolveException: Could not resolve all
    dependencies for configuration ':runtime'. Caused by:
    org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not
    find com.oracle.jdbc:ojdbc7:12.1.0.2. Required by:
        :erp:unspecified</i></p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/gq46D.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/gq46D.jpg" alt="enter image description here"></a></p>
  
  <p>(Related links: <a href="http://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9015" rel="noreferrer">http://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9015</a>
  <a href="https://blogs.oracle.com/dev2dev/entry/how_to_get_oracle_jdbc" rel="noreferrer">https://blogs.oracle.com/dev2dev/entry/how_to_get_oracle_jdbc</a>
  <a href="https://blogs.oracle.com/dev2dev/entry/oracle_maven_repository_instructions_for" rel="noreferrer">https://blogs.oracle.com/dev2dev/entry/oracle_maven_repository_instructions_for</a>
  )</p>
  
  <p>Help me add <code>ojdbc</code> to dependencies list by Gradle, thank you!</p>