Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem Using The Plugin With Grails 6.2.2 #6

Open
jeffscottbrown opened this issue Dec 10, 2024 · 4 comments
Open

Problem Using The Plugin With Grails 6.2.2 #6

jeffscottbrown opened this issue Dec 10, 2024 · 4 comments

Comments

@jeffscottbrown
Copy link

I think I have followed the README instructions at https://github.com/codeconsole/grails-plugin-sitemesh3/blob/84a0e32622cddef7e98ddc6aaeae557bf3a4af71/README.md.

I created a new Grails 6.2.2 app, added https://oss.sonatype.org/content/repositories/snapshots/ as an artifact repository and added org.sitemesh:grails-plugin-sitemesh3:7.0.0-SNAPSHOT as an "implementation" dependency.

Your app is now using SiteMesh 3 and is no longer using SiteMesh 2. NO FURTHER CHANGES NEEDED.

I can't get the app to build with either Java 11 or Java 17.

Are there particular versions of Java that are required in order for this to work?

Thank you!

@jjelliott
Copy link

I tested as well on Windows and on Debian (via WSL) and was unable to build as well. It appears that Gradle is unable to decide on a Groovy version.

Error:

* What went wrong:
A problem occurred configuring root project 'demo'.
> Could not resolve all files for configuration ':runtimeClasspath'.
   > Could not resolve org.codehaus.groovy:groovy:3.0.13.
     Required by:
         project : > io.micronaut:micronaut-inject-groovy:3.10.4
         project : > org.grails:grails-core:6.2.2 > io.micronaut.spring:micronaut-spring-context:4.5.1 > io.micronaut:micronaut-bom:3.10.4
         project : > org.grails:grails-core:6.2.2 > io.micronaut.spring:micronaut-spring-context:4.5.1 > io.micronaut:micronaut-bom:3.10.4 > org.codehaus.groovy:groovy-bom:3.0.13
      > Module 'org.codehaus.groovy:groovy' has been rejected:
           Cannot select module with conflict on capability 'org.codehaus.groovy:groovy:3.0.23' also provided by [org.apache.groovy:groovy:4.0.24(groovyRuntimeElements)]
   > Could not resolve org.codehaus.groovy:groovy:3.0.23.
     Required by:
         project : > org.grails:grails-core:6.2.2
         project : > org.grails:grails-logging:6.2.2
         project : > org.grails:grails-plugin-databinding:6.2.2
         project : > org.grails:grails-plugin-i18n:6.2.2
         project : > org.grails:grails-plugin-interceptors:6.2.2
         project : > org.grails:grails-plugin-rest:6.2.2
         project : > org.grails:grails-plugin-services:6.2.2
         project : > org.grails:grails-plugin-url-mappings:6.2.2
         project : > org.grails:grails-web-boot:6.2.2
         project : > org.grails.plugins:hibernate5:8.1.1
         project : > org.grails:grails-core:6.2.2 > org.grails:grails-bootstrap:6.2.2
         project : > org.grails:grails-core:6.2.2 > org.grails:grails-spring:6.2.2
         project : > org.grails:grails-plugin-databinding:6.2.2 > org.grails:grails-web:6.2.2
         project : > org.grails:grails-plugin-i18n:6.2.2 > org.codehaus.groovy:groovy-ant:3.0.23
         project : > org.grails:grails-plugin-interceptors:6.2.2 > org.grails:grails-plugin-controllers:6.2.2
         project : > org.grails:grails-plugin-rest:6.2.2 > org.grails:grails-plugin-datasource:6.2.2
         project : > org.grails:grails-web-boot:6.2.2 > org.grails:grails-web-common:6.2.2
         project : > org.grails.plugins:gsp:6.2.4 > org.grails:grails-plugin-codecs:6.2.2
         project : > org.grails:grails-core:6.2.2 > org.grails:grails-bootstrap:6.2.2 > org.codehaus.groovy:groovy-xml:3.0.23
         project : > org.grails:grails-core:6.2.2 > org.grails:grails-bootstrap:6.2.2 > org.codehaus.groovy:groovy-templates:3.0.23
         project : > org.grails:grails-plugin-databinding:6.2.2 > org.grails:grails-web:6.2.2 > org.grails:grails-web-databinding:6.2.2
         project : > org.grails:grails-plugin-databinding:6.2.2 > org.grails:grails-web:6.2.2 > org.grails:grails-web-fileupload:6.2.2
         project : > org.grails:grails-plugin-databinding:6.2.2 > org.grails:grails-web:6.2.2 > org.grails:grails-web-url-mappings:6.2.2
         project : > org.grails:grails-plugin-databinding:6.2.2 > org.grails:grails-web:6.2.2 > org.grails:grails-web-mvc:6.2.2
         project : > org.grails:grails-plugin-interceptors:6.2.2 > org.grails:grails-plugin-controllers:6.2.2 > org.grails:grails-plugin-mimetypes:6.2.2
         project : > org.grails:grails-plugin-interceptors:6.2.2 > org.grails:grails-plugin-controllers:6.2.2 > org.grails:grails-plugin-validation:6.2.2
         project : > org.grails:grails-plugin-interceptors:6.2.2 > org.grails:grails-plugin-controllers:6.2.2 > org.grails:grails-plugin-domain-class:6.2.2
         project : > org.grails:grails-plugin-interceptors:6.2.2 > org.grails:grails-plugin-controllers:6.2.2 > org.grails:grails-web-sitemesh:6.2.4
         project : > org.grails:grails-plugin-rest:6.2.2 > org.grails:grails-plugin-datasource:6.2.2 > org.codehaus.groovy:groovy-sql:3.0.23
         project : > org.grails:grails-web-boot:6.2.2 > org.grails:grails-web-common:6.2.2 > org.grails:grails-databinding:6.2.2
         project : > org.grails:grails-web-boot:6.2.2 > org.grails:grails-web-common:6.2.2 > org.grails:grails-encoder:6.2.2
         project : > org.grails.plugins:gsp:6.2.4 > org.grails:grails-plugin-codecs:6.2.2 > org.grails:grails-codecs:6.2.2
         project : > org.grails:grails-web-boot:6.2.2 > org.grails:grails-web-common:6.2.2 > org.grails:grails-encoder:6.2.2 > org.codehaus.groovy:groovy-json:3.0.23
      > Module 'org.codehaus.groovy:groovy' has been rejected:
           Cannot select module with conflict on capability 'org.codehaus.groovy:groovy:3.0.23' also provided by [org.apache.groovy:groovy:4.0.24(groovyRuntimeElements)]
   > Could not resolve org.codehaus.groovy:groovy-xml:3.0.23.
     Required by:
         project : > org.grails:grails-core:6.2.2 > org.grails:grails-bootstrap:6.2.2
         project : > org.grails:grails-core:6.2.2 > org.grails:grails-bootstrap:6.2.2 > org.codehaus.groovy:groovy-templates:3.0.23
         project : > org.grails:grails-web-boot:6.2.2 > org.grails:grails-web-common:6.2.2 > org.grails:grails-databinding:6.2.2
      > Module 'org.codehaus.groovy:groovy-xml' has been rejected:
           Cannot select module with conflict on capability 'org.codehaus.groovy:groovy-xml:3.0.23' also provided by [org.apache.groovy:groovy-xml:4.0.24(groovyRuntimeElements)]
   > Could not resolve org.codehaus.groovy:groovy:3.0.21.
     Required by:
         project : > org.grails:grails-core:6.2.2 > org.grails:grails-datastore-core:8.1.2
         project : > org.grails.plugins:hibernate5:8.1.1 > org.grails:grails-datastore-web:8.1.2
         project : > org.grails.plugins:hibernate5:8.1.1 > org.grails:grails-datastore-gorm-support:8.1.2
         project : > org.grails.plugins:hibernate5:8.1.1 > org.grails:grails-datastore-gorm-hibernate5:8.1.0
         project : > org.grails:grails-plugin-rest:6.2.2 > org.grails:grails-plugin-datasource:6.2.2 > org.grails:grails-datastore-gorm:8.1.2
         project : > org.grails:grails-plugin-interceptors:6.2.2 > org.grails:grails-plugin-controllers:6.2.2 > org.grails:grails-plugin-domain-class:6.2.2 > org.grails:grails-datastore-gorm-validation:8.1.2
      > Module 'org.codehaus.groovy:groovy' has been rejected:
           Cannot select module with conflict on capability 'org.codehaus.groovy:groovy:3.0.23' also provided by [org.apache.groovy:groovy:4.0.24(groovyRuntimeElements)]
   > Could not resolve org.apache.groovy:groovy:4.0.24.
     Required by:
         project : > org.grails.plugins:gsp:6.2.4 > org.grails:grails-web-gsp-taglib:7.0.0-SNAPSHOT:20241201.232622-72
         project : > org.grails.plugins:gsp:6.2.4 > org.grails:grails-web-gsp-taglib:7.0.0-SNAPSHOT:20241201.232622-72 > org.grails:grails-bom:7.0.0-SNAPSHOT:20241211.210314-177
         project : > org.grails.plugins:gsp:6.2.4 > org.grails:grails-web-jsp:7.0.0-SNAPSHOT:20241201.232622-71
         project : > org.grails:grails-web-boot:6.2.2 > org.grails:grails-web-common:6.2.2 > org.grails:grails-gsp:7.0.0-SNAPSHOT:20241201.232622-73
         project : > org.grails:grails-plugin-databinding:6.2.2 > org.grails:grails-web:6.2.2 > org.grails:grails-web-gsp:7.0.0-SNAPSHOT:20241201.232622-72
         project : > org.grails:grails-web-boot:6.2.2 > org.grails:grails-web-common:6.2.2 > org.grails:grails-gsp:7.0.0-SNAPSHOT:20241201.232622-73 > org.grails:grails-taglib:7.0.0-SNAPSHOT:20241201.232622-73
         project : > org.grails:grails-plugin-rest:6.2.2 > org.grails.plugins:converters:6.0.0-SNAPSHOT:20240924.041442-7 > org.apache.groovy:groovy-xml:4.0.24
         project : > org.grails:grails-web-boot:6.2.2 > org.grails:grails-web-common:6.2.2 > org.grails:grails-gsp:7.0.0-SNAPSHOT:20241201.232622-73 > org.apache.groovy:groovy-templates:4.0.24
         project : > org.grails:grails-plugin-databinding:6.2.2 > org.grails:grails-web:6.2.2 > org.grails:grails-web-gsp:7.0.0-SNAPSHOT:20241201.232622-72 > org.grails:grails-web-taglib:7.0.0-SNAPSHOT:20241201.232622-73
         project : > org.grails.plugins:gsp:6.2.4 > org.grails:grails-web-gsp-taglib:7.0.0-SNAPSHOT:20241201.232622-72 > org.grails:grails-bom:7.0.0-SNAPSHOT:20241211.210314-177 > org.apache.groovy:groovy-bom:4.0.24
      > Module 'org.apache.groovy:groovy' has been rejected:
           Cannot select module with conflict on capability 'org.codehaus.groovy:groovy:4.0.24' also provided by [org.codehaus.groovy:groovy:3.0.23(runtime)]
   > Could not resolve org.apache.groovy:groovy-xml:4.0.24.
     Required by:
         project : > org.grails.plugins:gsp:6.2.4 > org.grails:grails-web-gsp-taglib:7.0.0-SNAPSHOT:20241201.232622-72 > org.grails:grails-bom:7.0.0-SNAPSHOT:20241211.210314-177
         project : > org.grails:grails-web-boot:6.2.2 > org.grails:grails-web-common:6.2.2 > org.grails:grails-gsp:7.0.0-SNAPSHOT:20241201.232622-73 > org.apache.groovy:groovy-templates:4.0.24
         project : > org.grails.plugins:gsp:6.2.4 > org.grails:grails-web-gsp-taglib:7.0.0-SNAPSHOT:20241201.232622-72 > org.grails:grails-bom:7.0.0-SNAPSHOT:20241211.210314-177 > org.apache.groovy:groovy-bom:4.0.24
      > Module 'org.apache.groovy:groovy-xml' has been rejected:
           Cannot select module with conflict on capability 'org.codehaus.groovy:groovy-xml:4.0.24' also provided by [org.codehaus.groovy:groovy-xml:3.0.23(runtime)]
   > Could not resolve org.codehaus.groovy:groovy-xml:3.0.13.
     Required by:
         project : > org.grails:grails-core:6.2.2 > io.micronaut.spring:micronaut-spring-context:4.5.1 > io.micronaut:micronaut-bom:3.10.4 > org.codehaus.groovy:groovy-bom:3.0.13
      > Module 'org.codehaus.groovy:groovy-xml' has been rejected:
           Cannot select module with conflict on capability 'org.codehaus.groovy:groovy-xml:3.0.23' also provided by [org.apache.groovy:groovy-xml:4.0.24(groovyRuntimeElements)]
   > Could not resolve org.apache.groovy:groovy-xml:4.0.22.
     Required by:
         project : > org.grails:grails-plugin-rest:6.2.2 > org.grails.plugins:converters:6.0.0-SNAPSHOT:20240924.041442-7
      > Module 'org.apache.groovy:groovy-xml' has been rejected:
           Cannot select module with conflict on capability 'org.codehaus.groovy:groovy-xml:4.0.24' also provided by [org.codehaus.groovy:groovy-xml:3.0.23(runtime)]

jeffscottbrown added a commit to jeffscottbrown/sitemeshpluginissue6 that referenced this issue Jan 7, 2025
@jeffscottbrown
Copy link
Author

Just FYI... I tried with Grails 6.2.3 at https://github.com/jeffscottbrown/sitemeshpluginissue6 and I still am unable to build.

@jeffscottbrown
Copy link
Author

Is the recommended approach to exclude some transitive dependencies?

@jeffscottbrown
Copy link
Author

Is there a sample app available which demonstrates a way to use the plugin in Grails 6?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants