title: How to change artifactory runtime scope to compile scope?
body: <p>I am working on a project that uses gradle and the jfrog plugin to publish to artifactory. The important code fragments are these: </p>
  
  <pre><code>plugins {
     id "java"
     id "idea"
     id "groovy"
     id "pmd"
     id "findbugs"
     id "maven-publish"
     id "com.jfrog.artifactory" version "3.1.1"
  }
  
  dependencies {
     compile 'com.google.guava:guava:18.0'
     compile 'com.mashape.unirest:unirest-java:1.4.5'
     compile 'log4j:log4j:1.2.14'
  }
  
  artifactory {
     contextUrl = "https://SOME_SERVER/artifactory"
     publish {
        repository {
             repoKey = 'libs-snapshot-local'
             username = artifactory_username
             password = artifactory_password
             maven = true
        }
        defaults {
             publications ('mavenJava')
        }
     }
  }
  
  publishing {
      publications {
          mavenJava(MavenPublication) {
              from components.java
          }
      }
  }
  </code></pre>
  
  <p>When I do a gradle artifactoryPublish everything seems to work fine. The artefacts are published and a pom file is generated as well. </p>
  
  <p>Regretfully the dependencies in the pom file all have a <strong>runtime</strong> scope: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.whatsoever&lt;/groupId&gt;
    &lt;artifactId&gt;some-app&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
        &lt;artifactId&gt;guava&lt;/artifactId&gt;
        &lt;version&gt;18.0&lt;/version&gt;
        &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.mashape.unirest&lt;/groupId&gt;
        &lt;artifactId&gt;unirest-java&lt;/artifactId&gt;
        &lt;version&gt;1.4.5&lt;/version&gt;
        &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;log4j&lt;/groupId&gt;
        &lt;artifactId&gt;log4j&lt;/artifactId&gt;
        &lt;version&gt;1.2.14&lt;/version&gt;
        &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Instead of this runtime scope they should have a compile scope. What am I doing wrong? </p>