title: How to overcome "package com.sun.xml.internal.xxx does not exist" when compiling with Gradle?
body: <p>I want to compile java code that uses some Java's deprecated "sun" packages and Gradle compile task fails with this error</p>
  
  <pre><code>error: package com.sun.xml.internal.ws.developer does not exist
  </code></pre>
  
  <p>I am using Hotspot JDK and I can see this package there (so it actually exists - in rt.jar file)
  I also tried to add rt.jar itself into Gradle dependencies:</p>
  
  <pre><code>compile files( 'C:/Program Files/Java/jdk1.7.0_05/jre/lib/rt.jar')
  </code></pre>
  
  <p>but with no effect</p>
  
  <p>here is my gradle -v output:</p>
  
  <pre><code>------------------------------------------------------------
  Gradle 1.2
  ------------------------------------------------------------
  
  Gradle build time: Streda, 2012, september 12 10:46:02 UTC
  Groovy: 1.8.6
  Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
  Ivy: 2.2.0
  JVM: 1.7.0_05 (Oracle Corporation 23.1-b03)
  OS: Windows 7 6.1 amd64
  </code></pre>
  
  <p>I also tried to add jaxws-rt.jar to classpath - no effect neither</p>
  
  <p>I would really appreciate any help</p>
  
  <p>thanks</p>