I want to compile java code that uses some Java's deprecated "sun" packages and Gradle compile task fails with this error
error: package com.sun.xml.internal.ws.developer does not exist
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:
compile files( 'C:/Program Files/Java/jdk1.7.0_05/jre/lib/rt.jar')
but with no effect
here is my gradle -v output:
------------------------------------------------------------
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
I also tried to add jaxws-rt.jar to classpath - no effect neither
I would really appreciate any help
thanks