I have started upgrading a Grails 6 application to...
# questions
t
I have started upgrading a Grails 6 application to version 7.0.0-M3 and have run into an issue with 'org.grails.plugins.views-markup' If I try to run the tests
./gradlew check
I get the following error:
Copy code
FAILURE: Build failed with an exception
Where:
Build file '/home/thomas/workspace/ufst/kuda/kuda/dataplatform/build.gradle' line 6

* What went wrong:
An exception occurred applying plugin request [id: 'org.grails.plugins.views-markup', version: '4.0.0M3']
> Failed to apply plugin 'org.grails.plugins.views-markup'.
   > Could not create task ':dataplatform:compileGmlViews'.
      > Could not create task of type 'MarkupViewCompilerTask'.
         > The constructor for type MarkupViewCompilerTask should be annotated with @Inject.
The constructor is not marked with the Jakarta @Inject annotation (as the error says): https://github.com/apache/grails-views/blob/7.0.x/views/gradle-plugin/src/main/groovy/grails/views/gradle/markup/MarkupViewCompilerTask.groovy#L27 Some of the other tasks have the annotation, fx: https://github.com/apache/grails-views/blob/7.0.x/views/gradle-plugin/src/main/groovy/grails/views/gradle/json/JsonViewCompilerTask.groovy#L19 I don't know if that could be the error or if I have some other issue?
j
Do you have the time to create a ticket for this? Create it in the grails-gradle-plugin repo if you don't mind? I'll make a pass at all of these & fix them.
t
Ok, I'll create a ticket
❤️ 3
j
I'll handle this one when we merge the views gradle plugin. That's planned within the next week.
t
Perfect, thanks 👍
👍 1