Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Groovy bundles and OSGI R6 Annotations: AEM 6.4

HN_Doug
Level 1
Level 1

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?

1 Accepted Solution
Gaurav-Behl
Correct answer by
Community Advisor
Community Advisor

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.

View solution in original post

1 Reply
Gaurav-Behl
Correct answer by
Community Advisor
Community Advisor

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.