Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.0-rc-4
    • Fix Version/s: 1.0-rc-5
    • Component/s: None
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      2

      Description

      If I use gmaven to compile groovy source code with AST transformation (eg. @Bindable), it is not applied in resulting class file.
      I've selected 1.6 provider, which uses groovy 1.6-RC-1 by default.
      Simple project is in attachment test1.zip

      If I try groovyc (from 1.6.0) for the same thing, it works - the resulting class file is bigger and contains words like "PropertyChangeSupport"

      So I've tried to force gmaven to use groovy 1.6.0, but I'm getting

      [INFO] startup failed, /C:/tmp/groovytest/test/src/main/groovy/test/Example.groovy: Not an ASTTransformation: groovy.beans.BindableASTTransformation declared by groovy.beans.Bindable

      and if I run mvn with -X I still see the org.codehaus.groovy:groovy-all:jar:1.6-RC-1 dependency there
      attachment test2.zip

        Activity

        Hide
        Jason Dillon added a comment -

        Please try using GMaven 1.0-rc-5-SNAPSHOT. This has its 1.6 runtime as default if you are >= Java 5 and uses Groovy 1.6.0. There were some additional fixes in 1.6.0 which were related to GMaven compiling AST bits. Please give the snapshot a try and let me know. Thx.

        Show
        Jason Dillon added a comment - Please try using GMaven 1.0-rc-5-SNAPSHOT. This has its 1.6 runtime as default if you are >= Java 5 and uses Groovy 1.6.0. There were some additional fixes in 1.6.0 which were related to GMaven compiling AST bits. Please give the snapshot a try and let me know. Thx.
        Hide
        Jason Dillon added a comment -

        AST muck has been fixed in the latest Groovy 1.6.0 and GMaven 1.0-rc-5-SNAPSHOT

        Show
        Jason Dillon added a comment - AST muck has been fixed in the latest Groovy 1.6.0 and GMaven 1.0-rc-5-SNAPSHOT

          People

          • Assignee:
            Jason Dillon
            Reporter:
            Pavel Cernocky
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: