Skip to content

Conversation

@jamesfredley
Copy link
Contributor

No description provided.

@jamesfredley jamesfredley added this to the grails:7.0.0-RC1 milestone Jun 13, 2025
@jamesfredley jamesfredley self-assigned this Jun 13, 2025
@jamesfredley jamesfredley requested a review from Copilot June 13, 2025 16:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Gradle dependency configurations across various modules to use the developmentOnly scope for webjar dependencies, ensuring they are only included in the development environment.

  • Replace "implementation" with "developmentOnly" for 'org.webjars.npm:jquery' in multiple build.gradle files
  • Similarly update usage for 'org.webjars.npm:bootstrap' where applicable

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated no comments.

Show a summary per file
File Description
grails-test-examples/namespaces/build.gradle Update jQuery dependency configuration
grails-test-examples/mongodb/hibernate5/build.gradle Update jQuery dependency configuration
grails-test-examples/mongodb/gson-templates/build.gradle Update jQuery dependency configuration
grails-test-examples/mongodb/database-per-tenant/build.gradle Update jQuery dependency configuration
grails-test-examples/mongodb/base/build.gradle Update jQuery dependency configuration
grails-test-examples/micronaut/build.gradle Update Bootstrap and jQuery dependency configurations
grails-test-examples/issue-11102/build.gradle Update Bootstrap and jQuery dependency configurations
grails-test-examples/hyphenated/build.gradle Update jQuery dependency configuration
grails-test-examples/hibernate5/issue450/build.gradle Update Bootstrap and jQuery dependency configurations
grails-test-examples/hibernate5/grails-schema-per-tenant/build.gradle Update jQuery dependency configuration
grails-test-examples/hibernate5/grails-partitioned-multi-tenancy/build.gradle Update jQuery dependency configuration
grails-test-examples/hibernate5/grails-hibernate/build.gradle Update jQuery dependency configuration
grails-test-examples/hibernate5/grails-database-per-tenant/build.gradle Update jQuery dependency configuration
grails-test-examples/gsp-sitemesh3/build.gradle Update Bootstrap and jQuery dependency configurations
grails-test-examples/geb/build.gradle Update Bootstrap and jQuery dependency configurations
grails-test-examples/demo33/build.gradle Update Bootstrap and jQuery dependency configurations
grails-test-examples/app2/build.gradle Update jQuery dependency configuration
grails-test-examples/app1/build.gradle Update jQuery dependency configuration
grails-data-neo4j/examples/grails3-neo4j/build.gradle Update jQuery dependency configuration
grails-data-neo4j/examples/grails3-neo4j-hibernate/build.gradle Update jQuery dependency configuration
@jamesfredley jamesfredley moved this to In Progress in Apache Grails Jun 13, 2025
@jamesfredley jamesfredley requested a review from jdaugherty June 13, 2025 17:43
Copy link
Contributor

@irllyliketoast irllyliketoast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@jdaugherty jdaugherty merged commit d03aa57 into 7.0.x Jun 14, 2025
74 of 76 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Apache Grails Jun 14, 2025
@matrei
Copy link
Contributor

matrei commented Jun 15, 2025

@jamesfredley I'd like to understand the reasoning behind this update — could you provide some context?

@jdaugherty
Copy link
Contributor

We want our functional tests matching how our app generators are generating grails apps.

@matrei
Copy link
Contributor

matrei commented Jun 15, 2025

@jdaugherty OK, that makes sense, but with developmentOnly, I don't think the webjar assets will be loaded when running integration tests.

@jdaugherty
Copy link
Contributor

@matrei wouldn't this be a problem for end apps too then? How would they load assets and test them?

@matrei
Copy link
Contributor

matrei commented Jun 15, 2025

wouldn't this be a problem for end apps too then? How would they load assets and test them?

Yes, I believe so.

@jdaugherty jdaugherty deleted the webjars-developmentOnly branch July 7, 2025 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants