Spring Tool Suite
  1. Spring Tool Suite
  2. STS-1195

ant-junit JAR missing from classpath of Grails project

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Works as Designed
    • Affects Version/s: 2.5.0.M3
    • Fix Version/s: 2.5.0.RC1
    • Component/s: GRAILS
    • Labels:
      None

      Description

      Create a basic Grails project and then install the plugin spock 1.5-groovy-1.7-SNAPSHOT. STS will complain that it can't find the class JUnitResultFormatter. This can be rectified by adding ant-junit-1.7.1.jar to the build path, but this library is provided by Grails so should probably be included on the classpath by default.

      Note that the workaround will result in a bunch of other errors appearing. This is because the plugin's dependencies are declared in build scope, but they should probably be declared in test scope instead. I'll deal with that separately.

        Activity

        Hide
        Peter Ledbrook added a comment -

        Thanks for looking into this Kris. That's the information I was after. I think this is something that can and should be resolved in the plugin itself. The trouble is really that the plugin provides classes for both the build (the test runner) and the tests themselves. Hopefully we can come up with a better system for Grails 2.0.

        Show
        Peter Ledbrook added a comment - Thanks for looking into this Kris. That's the information I was after. I think this is something that can and should be resolved in the plugin itself. The trouble is really that the plugin provides classes for both the build (the test runner) and the tests themselves. Hopefully we can come up with a better system for Grails 2.0.
        Hide
        Peter Ledbrook added a comment -

        I can't seem to close the issue. Is that something you can do?

        Show
        Peter Ledbrook added a comment - I can't seem to close the issue. Is that something you can do?
        Hide
        Kris De Volder (c) added a comment -

        Thanks Peter, I will close this. I'll open a bug re the error messages in Groovy Eclipse, for this case. Andy wants to use this as an example for improving the error reporting in the Groovy compiler

        Show
        Kris De Volder (c) added a comment - Thanks Peter, I will close this. I'll open a bug re the error messages in Groovy Eclipse, for this case. Andy wants to use this as an example for improving the error reporting in the Groovy compiler
        Hide
        Kris De Volder (c) added a comment -

        Peter, if you eventually think there may be a problem with how STS computes the classpath, which I certainly don't rule out as a possibility, please reopen this bug (or create a new one).

        Show
        Kris De Volder (c) added a comment - Peter, if you eventually think there may be a problem with how STS computes the classpath, which I certainly don't rule out as a possibility, please reopen this bug (or create a new one).
        Hide
        Brian Bonner added a comment -

        I'm not clear on what the fix is for this. I see this in STS 2.5.0 M3 (which is what this says it affects). Any ideas?

        Show
        Brian Bonner added a comment - I'm not clear on what the fix is for this. I see this in STS 2.5.0 M3 (which is what this says it affects). Any ideas?

          People

          • Assignee:
            Unassigned
            Reporter:
            Peter Ledbrook
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: