You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by "dlehammer (via GitHub)" <gi...@apache.org> on 2025/10/26 15:57:00 UTC

Re: [I] web-app template explicitly defines old hibernate dependency (3.3.8) [grails-core]

dlehammer commented on issue #11067:
URL: https://github.com/apache/grails-core/issues/11067#issuecomment-3448649430

   Hi Grails enthusiasts,
   
   In celebration of the long-awaited [Grails 7 release](https://grails.apache.org/blog/2025-10-18-introducing-grails-7.html), I thought I'd revisit this old issue.
   
   ```
   $ grails -version
   | Grails Version: 7.0.0
   | JVM Version: 21.0.8
   ```
   
   Executing "Steps to Reproduce" for Grails 7 produces the following output
   
   1. Create web-app from template
   ```
   ~$ grails create-app my-webapp --profile web
   Resolving dependencies..........[main] INFO org.eclipse.aether.internal.impl.DefaultArtifactResolver - Artifact org.sonatype.oss:oss-parent:pom:7 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [apacheRepository (https://repository.apache.org/content/groups/public, default, releases+snapshots), grailsRepo (https://repo.grails.org/grails/restricted, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
   [main] INFO org.eclipse.aether.internal.impl.DefaultArtifactResolver - Artifact org.sonatype.oss:oss-parent:pom:7 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [apacheRepository (https://repository.apache.org/content/groups/public, default, releases+snapshots), grailsRepo (https://repo.grails.org/grails/restricted, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
   .........
   | Error [main] INFO org.eclipse.aether.internal.impl.DefaultArtifactResolver - Artifact org.sonatype.oss:oss-parent:pom:9 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [apacheRepository (https://repository.apache.org/content/groups/public, default, releases+snapshots), grailsRepo (https://repo.grails.org/grails/restricted, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
   | Error [main] INFO org.eclipse.aether.internal.impl.DefaultArtifactResolver - Artifact org.sonatype.oss:oss-parent:pom:9 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [apacheRepository (https://repository.apache.org/content/groups/public, default, releases+snapshots), grailsRepo (https://repo.grails.org/grails/restricted, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
   | Application created at /home/name/my-webapp
   ```
   
   2. Determine `hibernate` runtime dependencies
   ```
   my-webapp$ ./gradlew dependencies --configuration runtimeClasspath | grep hibernate
   |    |    +--- org.hibernate.validator:hibernate-validator:8.0.3.Final (c)
   |    +--- org.apache.grails:grails-data-hibernate5:7.0.0 (c)
   |    +--- org.apache.grails.data:grails-data-hibernate5-core:7.0.0 (c)
   |    \--- org.hibernate.validator:hibernate-validator:8.0.3.Final
   |    |    |    |    +--- org.hibernate.validator:hibernate-validator -> 8.0.3.Final (*)
   +--- org.apache.grails:grails-data-hibernate5 -> 7.0.0
   |    +--- org.hibernate:hibernate-core-jakarta:5.6.15.Final
   |    |    +--- org.hibernate.common:hibernate-commons-annotations:5.1.2.Final
   |    \--- org.apache.grails.data:grails-data-hibernate5-core:7.0.0
   |         +--- org.hibernate:hibernate-core-jakarta:5.6.15.Final (*)
   |         \--- org.hibernate.validator:hibernate-validator -> 8.0.3.Final (*)
   ```
   
   Closing issue, as hibernate dependencies seems aligned with `grails-bom` and `spring-boot-dependencies` BOM as is desired 🤓 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org