Groovy bundles and OSGI R6 Annotations: AEM 6.4 | Community
Skip to main content
New Participant
Feb 27, 2019 9:00 PM UTC
Solved

Groovy bundles and OSGI R6 Annotations: AEM 6.4

I am trying to develop a bundle using Groovy. We have tried with Groovy versions 2.4.16 and 2.5.6.

When building using Maven, I get an error when trying to use the annotation @ObjectClassDefinition .

The error says "unexpected token".

The same annotation works without error when using Java 8.

Does anyone know if this can be remedied?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Gaurav-Behl
Gaurav-BehlAccepted solution
Level 10
Feb 28, 2019 2:00 AM UTC

aem-groovy-console-12.0.0.zip  @ https://github.com/icfnext/aem-groovy-console/releases  delivers 2.4.13 which is compatible with 6.4

At least groovy console works fine with this version.

Give it a shot.

1 reply

Gaurav-Behl
Gaurav-BehlAccepted solution
Level 10
Feb 28, 2019 2:00 AM UTC

aem-groovy-console-12.0.0.zip  @ https://github.com/icfnext/aem-groovy-console/releases  delivers 2.4.13 which is compatible with 6.4

At least groovy console works fine with this version.

Give it a shot.

Translate