I have been migrating our build scripts from 0.8 to 1.0.7 and one of the
issue I am trying to fix is how we use the tools.jar from the Java JDK.
 Right now it just works in 0.8 without needing anything more than just
using the correct class imports in the build.gradle scripts.  In 1.0.7 it
isn't seeing those classes any more.  I have tried something like this:

buildscript {
    dependencies {
        classpath files("${System.properties['java.home']}/lib/tools.jar")

    }
}

But that doesn't work.  I get this in the output

13:21:44.933 [ERROR] [org.gradle.BuildExceptionReporter] build file
'C:\dev\buildSrc\build.gradle': 1: unable to resolve class
com.sun.tools.attach.spi.AttachProvider @ line 1, column 1.
13:21:44.949 [ERROR] [org.gradle.BuildExceptionReporter]    import
com.sun.tools.attach.spi.AttachProvider
13:21:44.949 [ERROR] [org.gradle.BuildExceptionReporter]    ^
13:21:44.949 [ERROR] [org.gradle.BuildExceptionReporter]

Any help would be great.

Thanks,
Jas

Reply via email to