You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2026/01/21 21:48:52 UTC
(grails-core) 01/01: Update asset-pipeline and WebJars require paths
This is an automated email from the ASF dual-hosted git repository.
jamesfredley pushed a commit to branch asset-pipeline-5.0.28
in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit a5e5dc5b33a2e4e1b450b2bdb7a27402458533b1
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Wed Jan 21 16:48:40 2026 -0500
Update asset-pipeline and WebJars require paths
Bumped asset-pipeline-gradle and asset-pipeline-bom versions to 5.0.28 in dependencies.gradle. Updated all asset require paths in JavaScript and CSS files to use explicit WebJars package/version wildcards for jQuery, Bootstrap, and Bootstrap Icons, improving compatibility with newer WebJars conventions.
---
dependencies.gradle | 4 ++--
.../grails-app/assets/javascripts/application.js | 2 +-
.../grails3-neo4j/grails-app/assets/javascripts/application.js | 2 +-
.../src/main/resources/assets/javascripts/application.js | 4 ++--
.../src/main/resources/assets/stylesheets/application.css | 4 ++--
.../web/skeleton/grails-app/assets/javascripts/application.js | 4 ++--
.../web/skeleton/grails-app/assets/stylesheets/application.css | 4 ++--
.../app1/grails-app/assets/javascripts/application.js | 2 +-
.../app2/grails-app/assets/javascripts/application.js | 2 +-
.../demo33/grails-app/assets/javascripts/application.js | 4 ++--
.../demo33/grails-app/assets/stylesheets/application.css | 2 +-
.../geb-gebconfig/grails-app/assets/javascripts/application.js | 4 ++--
.../geb-gebconfig/grails-app/assets/stylesheets/application.css | 2 +-
grails-test-examples/geb/grails-app/assets/javascripts/application.js | 4 ++--
.../geb/grails-app/assets/stylesheets/application.css | 2 +-
.../gsp-layout/grails-app/assets/javascripts/application.js | 4 ++--
.../gsp-layout/grails-app/assets/stylesheets/application.css | 2 +-
.../gsp-sitemesh3/grails-app/assets/javascripts/application.js | 4 ++--
.../gsp-sitemesh3/grails-app/assets/stylesheets/application.css | 2 +-
.../grails-app/assets/javascripts/application.js | 2 +-
.../grails-hibernate/grails-app/assets/javascripts/application.js | 2 +-
.../grails-app/assets/javascripts/application.js | 2 +-
.../grails-app/assets/javascripts/application.js | 2 +-
.../hibernate5/issue450/grails-app/assets/javascripts/application.js | 4 ++--
.../hibernate5/issue450/grails-app/assets/stylesheets/application.css | 2 +-
.../hyphenated/grails-app/assets/javascripts/application.js | 2 +-
.../issue-11102/grails-app/assets/javascripts/application.js | 4 ++--
.../issue-11102/grails-app/assets/stylesheets/application.css | 2 +-
.../micronaut/grails-app/assets/javascripts/application.js | 4 ++--
.../micronaut/grails-app/assets/stylesheets/application.css | 2 +-
.../mongodb/base/grails-app/assets/javascripts/application.js | 2 +-
.../database-per-tenant/grails-app/assets/javascripts/application.js | 2 +-
.../gson-templates/grails-app/assets/javascripts/application.js | 2 +-
.../mongodb/hibernate5/grails-app/assets/javascripts/application.js | 2 +-
.../namespaces/grails-app/assets/javascripts/application.js | 2 +-
.../scaffolding/grails-app/assets/javascripts/application.js | 4 ++--
.../scaffolding/grails-app/assets/stylesheets/application.css | 4 ++--
.../grails-app/assets/javascripts/application.js | 2 +-
38 files changed, 53 insertions(+), 53 deletions(-)
diff --git a/dependencies.gradle b/dependencies.gradle
index 5ba0214bf0..f9af121e48 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -25,7 +25,7 @@ ext {
'ant.version' : '1.10.15',
'asciidoctor-gradle-jvm.version': '4.0.5',
'asciidoctorj.version' : '3.0.0',
- 'asset-pipeline-gradle.version' : '5.0.22',
+ 'asset-pipeline-gradle.version' : '5.0.28',
'byte-buddy.version' : '1.17.7',
'commons-text.version' : '1.13.1',
'directory-watcher.version' : '0.19.1',
@@ -68,7 +68,7 @@ ext {
]
bomDependencyVersions = [
- 'asset-pipeline-bom.version' : '5.0.22',
+ 'asset-pipeline-bom.version' : '5.0.28',
'bootstrap-icons.version' : '1.13.1',
'bootstrap.version' : '5.3.8',
'commons-codec.version' : '1.18.0',
diff --git a/grails-data-neo4j/examples/grails3-neo4j-hibernate/grails-app/assets/javascripts/application.js b/grails-data-neo4j/examples/grails3-neo4j-hibernate/grails-app/assets/javascripts/application.js
index d913ac214a..4111b81e8b 100644
--- a/grails-data-neo4j/examples/grails3-neo4j-hibernate/grails-app/assets/javascripts/application.js
+++ b/grails-data-neo4j/examples/grails3-neo4j-hibernate/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-data-neo4j/examples/grails3-neo4j/grails-app/assets/javascripts/application.js b/grails-data-neo4j/examples/grails3-neo4j/grails-app/assets/javascripts/application.js
index d913ac214a..4111b81e8b 100644
--- a/grails-data-neo4j/examples/grails3-neo4j/grails-app/assets/javascripts/application.js
+++ b/grails-data-neo4j/examples/grails3-neo4j/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-forge/grails-forge-core/src/main/resources/assets/javascripts/application.js b/grails-forge/grails-forge-core/src/main/resources/assets/javascripts/application.js
index fc70bb1576..9b4a4c4ee7 100644
--- a/grails-forge/grails-forge-core/src/main/resources/assets/javascripts/application.js
+++ b/grails-forge/grails-forge-core/src/main/resources/assets/javascripts/application.js
@@ -5,8 +5,8 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
-//= require webjars/dist/js/bootstrap.bundle.js
+//= require webjars/jquery/%/dist/jquery.js
+//= require webjars/bootstrap/%/dist/js/bootstrap.bundle.js
//= require_self
if (typeof jQuery !== 'undefined') {
diff --git a/grails-forge/grails-forge-core/src/main/resources/assets/stylesheets/application.css b/grails-forge/grails-forge-core/src/main/resources/assets/stylesheets/application.css
index dfa5fa3e0e..bf27a3f53d 100644
--- a/grails-forge/grails-forge-core/src/main/resources/assets/stylesheets/application.css
+++ b/grails-forge/grails-forge-core/src/main/resources/assets/stylesheets/application.css
@@ -7,8 +7,8 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
-*= require webjars/dist/css/bootstrap.css
-*= require webjars/font/bootstrap-icons.css
+*= require webjars/bootstrap/%/dist/css/bootstrap.css
+*= require webjars/bootstrap-icons/%/font/bootstrap-icons.css
*= require grails.css
*= require_self
*/
diff --git a/grails-profiles/web/skeleton/grails-app/assets/javascripts/application.js b/grails-profiles/web/skeleton/grails-app/assets/javascripts/application.js
index fc70bb1576..9b4a4c4ee7 100644
--- a/grails-profiles/web/skeleton/grails-app/assets/javascripts/application.js
+++ b/grails-profiles/web/skeleton/grails-app/assets/javascripts/application.js
@@ -5,8 +5,8 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
-//= require webjars/dist/js/bootstrap.bundle.js
+//= require webjars/jquery/%/dist/jquery.js
+//= require webjars/bootstrap/%/dist/js/bootstrap.bundle.js
//= require_self
if (typeof jQuery !== 'undefined') {
diff --git a/grails-profiles/web/skeleton/grails-app/assets/stylesheets/application.css b/grails-profiles/web/skeleton/grails-app/assets/stylesheets/application.css
index dfa5fa3e0e..bf27a3f53d 100644
--- a/grails-profiles/web/skeleton/grails-app/assets/stylesheets/application.css
+++ b/grails-profiles/web/skeleton/grails-app/assets/stylesheets/application.css
@@ -7,8 +7,8 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
-*= require webjars/dist/css/bootstrap.css
-*= require webjars/font/bootstrap-icons.css
+*= require webjars/bootstrap/%/dist/css/bootstrap.css
+*= require webjars/bootstrap-icons/%/font/bootstrap-icons.css
*= require grails.css
*= require_self
*/
diff --git a/grails-test-examples/app1/grails-app/assets/javascripts/application.js b/grails-test-examples/app1/grails-app/assets/javascripts/application.js
index 3feffbdce3..1338b619c4 100644
--- a/grails-test-examples/app1/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/app1/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/app2/grails-app/assets/javascripts/application.js b/grails-test-examples/app2/grails-app/assets/javascripts/application.js
index 3feffbdce3..1338b619c4 100644
--- a/grails-test-examples/app2/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/app2/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/demo33/grails-app/assets/javascripts/application.js b/grails-test-examples/demo33/grails-app/assets/javascripts/application.js
index b820b82537..4e86afba8e 100644
--- a/grails-test-examples/demo33/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/demo33/grails-app/assets/javascripts/application.js
@@ -24,8 +24,8 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
-//= require webjars/dist/js/bootstrap.bundle.js
+//= require webjars/jquery/%/dist/jquery.js
+//= require webjars/bootstrap/%/dist/js/bootstrap.bundle.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/demo33/grails-app/assets/stylesheets/application.css b/grails-test-examples/demo33/grails-app/assets/stylesheets/application.css
index 7774374e08..ed17a1905d 100644
--- a/grails-test-examples/demo33/grails-app/assets/stylesheets/application.css
+++ b/grails-test-examples/demo33/grails-app/assets/stylesheets/application.css
@@ -26,7 +26,7 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
-*= require webjars/dist/css/bootstrap.css
+*= require webjars/bootstrap/%/dist/css/bootstrap.css
*= require grails.css
*= require main.css
*= require mobile.css
diff --git a/grails-test-examples/geb-gebconfig/grails-app/assets/javascripts/application.js b/grails-test-examples/geb-gebconfig/grails-app/assets/javascripts/application.js
index 8e2737b7b8..2accf759ad 100644
--- a/grails-test-examples/geb-gebconfig/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/geb-gebconfig/grails-app/assets/javascripts/application.js
@@ -24,6 +24,6 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
-//= require webjars/dist/js/bootstrap.bundle.js
+//= require webjars/jquery/%/dist/jquery.js
+//= require webjars/bootstrap/%/dist/js/bootstrap.bundle.js
//= require_self
diff --git a/grails-test-examples/geb-gebconfig/grails-app/assets/stylesheets/application.css b/grails-test-examples/geb-gebconfig/grails-app/assets/stylesheets/application.css
index 7774374e08..ed17a1905d 100644
--- a/grails-test-examples/geb-gebconfig/grails-app/assets/stylesheets/application.css
+++ b/grails-test-examples/geb-gebconfig/grails-app/assets/stylesheets/application.css
@@ -26,7 +26,7 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
-*= require webjars/dist/css/bootstrap.css
+*= require webjars/bootstrap/%/dist/css/bootstrap.css
*= require grails.css
*= require main.css
*= require mobile.css
diff --git a/grails-test-examples/geb/grails-app/assets/javascripts/application.js b/grails-test-examples/geb/grails-app/assets/javascripts/application.js
index 8e2737b7b8..2accf759ad 100644
--- a/grails-test-examples/geb/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/geb/grails-app/assets/javascripts/application.js
@@ -24,6 +24,6 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
-//= require webjars/dist/js/bootstrap.bundle.js
+//= require webjars/jquery/%/dist/jquery.js
+//= require webjars/bootstrap/%/dist/js/bootstrap.bundle.js
//= require_self
diff --git a/grails-test-examples/geb/grails-app/assets/stylesheets/application.css b/grails-test-examples/geb/grails-app/assets/stylesheets/application.css
index 7774374e08..ed17a1905d 100644
--- a/grails-test-examples/geb/grails-app/assets/stylesheets/application.css
+++ b/grails-test-examples/geb/grails-app/assets/stylesheets/application.css
@@ -26,7 +26,7 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
-*= require webjars/dist/css/bootstrap.css
+*= require webjars/bootstrap/%/dist/css/bootstrap.css
*= require grails.css
*= require main.css
*= require mobile.css
diff --git a/grails-test-examples/gsp-layout/grails-app/assets/javascripts/application.js b/grails-test-examples/gsp-layout/grails-app/assets/javascripts/application.js
index 8e2737b7b8..2accf759ad 100644
--- a/grails-test-examples/gsp-layout/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/gsp-layout/grails-app/assets/javascripts/application.js
@@ -24,6 +24,6 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
-//= require webjars/dist/js/bootstrap.bundle.js
+//= require webjars/jquery/%/dist/jquery.js
+//= require webjars/bootstrap/%/dist/js/bootstrap.bundle.js
//= require_self
diff --git a/grails-test-examples/gsp-layout/grails-app/assets/stylesheets/application.css b/grails-test-examples/gsp-layout/grails-app/assets/stylesheets/application.css
index 7774374e08..ed17a1905d 100644
--- a/grails-test-examples/gsp-layout/grails-app/assets/stylesheets/application.css
+++ b/grails-test-examples/gsp-layout/grails-app/assets/stylesheets/application.css
@@ -26,7 +26,7 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
-*= require webjars/dist/css/bootstrap.css
+*= require webjars/bootstrap/%/dist/css/bootstrap.css
*= require grails.css
*= require main.css
*= require mobile.css
diff --git a/grails-test-examples/gsp-sitemesh3/grails-app/assets/javascripts/application.js b/grails-test-examples/gsp-sitemesh3/grails-app/assets/javascripts/application.js
index 8e2737b7b8..2accf759ad 100644
--- a/grails-test-examples/gsp-sitemesh3/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/gsp-sitemesh3/grails-app/assets/javascripts/application.js
@@ -24,6 +24,6 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
-//= require webjars/dist/js/bootstrap.bundle.js
+//= require webjars/jquery/%/dist/jquery.js
+//= require webjars/bootstrap/%/dist/js/bootstrap.bundle.js
//= require_self
diff --git a/grails-test-examples/gsp-sitemesh3/grails-app/assets/stylesheets/application.css b/grails-test-examples/gsp-sitemesh3/grails-app/assets/stylesheets/application.css
index 7774374e08..ed17a1905d 100644
--- a/grails-test-examples/gsp-sitemesh3/grails-app/assets/stylesheets/application.css
+++ b/grails-test-examples/gsp-sitemesh3/grails-app/assets/stylesheets/application.css
@@ -26,7 +26,7 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
-*= require webjars/dist/css/bootstrap.css
+*= require webjars/bootstrap/%/dist/css/bootstrap.css
*= require grails.css
*= require main.css
*= require mobile.css
diff --git a/grails-test-examples/hibernate5/grails-database-per-tenant/grails-app/assets/javascripts/application.js b/grails-test-examples/hibernate5/grails-database-per-tenant/grails-app/assets/javascripts/application.js
index d913ac214a..4111b81e8b 100644
--- a/grails-test-examples/hibernate5/grails-database-per-tenant/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/hibernate5/grails-database-per-tenant/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/hibernate5/grails-hibernate/grails-app/assets/javascripts/application.js b/grails-test-examples/hibernate5/grails-hibernate/grails-app/assets/javascripts/application.js
index d913ac214a..4111b81e8b 100644
--- a/grails-test-examples/hibernate5/grails-hibernate/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/hibernate5/grails-hibernate/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/hibernate5/grails-partitioned-multi-tenancy/grails-app/assets/javascripts/application.js b/grails-test-examples/hibernate5/grails-partitioned-multi-tenancy/grails-app/assets/javascripts/application.js
index d913ac214a..4111b81e8b 100644
--- a/grails-test-examples/hibernate5/grails-partitioned-multi-tenancy/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/hibernate5/grails-partitioned-multi-tenancy/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/hibernate5/grails-schema-per-tenant/grails-app/assets/javascripts/application.js b/grails-test-examples/hibernate5/grails-schema-per-tenant/grails-app/assets/javascripts/application.js
index d913ac214a..4111b81e8b 100644
--- a/grails-test-examples/hibernate5/grails-schema-per-tenant/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/hibernate5/grails-schema-per-tenant/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/hibernate5/issue450/grails-app/assets/javascripts/application.js b/grails-test-examples/hibernate5/issue450/grails-app/assets/javascripts/application.js
index 8e2737b7b8..2accf759ad 100644
--- a/grails-test-examples/hibernate5/issue450/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/hibernate5/issue450/grails-app/assets/javascripts/application.js
@@ -24,6 +24,6 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
-//= require webjars/dist/js/bootstrap.bundle.js
+//= require webjars/jquery/%/dist/jquery.js
+//= require webjars/bootstrap/%/dist/js/bootstrap.bundle.js
//= require_self
diff --git a/grails-test-examples/hibernate5/issue450/grails-app/assets/stylesheets/application.css b/grails-test-examples/hibernate5/issue450/grails-app/assets/stylesheets/application.css
index 7774374e08..ed17a1905d 100644
--- a/grails-test-examples/hibernate5/issue450/grails-app/assets/stylesheets/application.css
+++ b/grails-test-examples/hibernate5/issue450/grails-app/assets/stylesheets/application.css
@@ -26,7 +26,7 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
-*= require webjars/dist/css/bootstrap.css
+*= require webjars/bootstrap/%/dist/css/bootstrap.css
*= require grails.css
*= require main.css
*= require mobile.css
diff --git a/grails-test-examples/hyphenated/grails-app/assets/javascripts/application.js b/grails-test-examples/hyphenated/grails-app/assets/javascripts/application.js
index 3feffbdce3..1338b619c4 100644
--- a/grails-test-examples/hyphenated/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/hyphenated/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/issue-11102/grails-app/assets/javascripts/application.js b/grails-test-examples/issue-11102/grails-app/assets/javascripts/application.js
index b820b82537..4e86afba8e 100644
--- a/grails-test-examples/issue-11102/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/issue-11102/grails-app/assets/javascripts/application.js
@@ -24,8 +24,8 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
-//= require webjars/dist/js/bootstrap.bundle.js
+//= require webjars/jquery/%/dist/jquery.js
+//= require webjars/bootstrap/%/dist/js/bootstrap.bundle.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/issue-11102/grails-app/assets/stylesheets/application.css b/grails-test-examples/issue-11102/grails-app/assets/stylesheets/application.css
index 7774374e08..ed17a1905d 100644
--- a/grails-test-examples/issue-11102/grails-app/assets/stylesheets/application.css
+++ b/grails-test-examples/issue-11102/grails-app/assets/stylesheets/application.css
@@ -26,7 +26,7 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
-*= require webjars/dist/css/bootstrap.css
+*= require webjars/bootstrap/%/dist/css/bootstrap.css
*= require grails.css
*= require main.css
*= require mobile.css
diff --git a/grails-test-examples/micronaut/grails-app/assets/javascripts/application.js b/grails-test-examples/micronaut/grails-app/assets/javascripts/application.js
index 8e2737b7b8..2accf759ad 100644
--- a/grails-test-examples/micronaut/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/micronaut/grails-app/assets/javascripts/application.js
@@ -24,6 +24,6 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
-//= require webjars/dist/js/bootstrap.bundle.js
+//= require webjars/jquery/%/dist/jquery.js
+//= require webjars/bootstrap/%/dist/js/bootstrap.bundle.js
//= require_self
diff --git a/grails-test-examples/micronaut/grails-app/assets/stylesheets/application.css b/grails-test-examples/micronaut/grails-app/assets/stylesheets/application.css
index 7774374e08..ed17a1905d 100644
--- a/grails-test-examples/micronaut/grails-app/assets/stylesheets/application.css
+++ b/grails-test-examples/micronaut/grails-app/assets/stylesheets/application.css
@@ -26,7 +26,7 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
-*= require webjars/dist/css/bootstrap.css
+*= require webjars/bootstrap/%/dist/css/bootstrap.css
*= require grails.css
*= require main.css
*= require mobile.css
diff --git a/grails-test-examples/mongodb/base/grails-app/assets/javascripts/application.js b/grails-test-examples/mongodb/base/grails-app/assets/javascripts/application.js
index d913ac214a..4111b81e8b 100644
--- a/grails-test-examples/mongodb/base/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/mongodb/base/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/mongodb/database-per-tenant/grails-app/assets/javascripts/application.js b/grails-test-examples/mongodb/database-per-tenant/grails-app/assets/javascripts/application.js
index d913ac214a..4111b81e8b 100644
--- a/grails-test-examples/mongodb/database-per-tenant/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/mongodb/database-per-tenant/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/mongodb/gson-templates/grails-app/assets/javascripts/application.js b/grails-test-examples/mongodb/gson-templates/grails-app/assets/javascripts/application.js
index 943ee08506..8da1ede7ff 100644
--- a/grails-test-examples/mongodb/gson-templates/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/mongodb/gson-templates/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/mongodb/hibernate5/grails-app/assets/javascripts/application.js b/grails-test-examples/mongodb/hibernate5/grails-app/assets/javascripts/application.js
index d913ac214a..4111b81e8b 100644
--- a/grails-test-examples/mongodb/hibernate5/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/mongodb/hibernate5/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/namespaces/grails-app/assets/javascripts/application.js b/grails-test-examples/namespaces/grails-app/assets/javascripts/application.js
index 3feffbdce3..1338b619c4 100644
--- a/grails-test-examples/namespaces/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/namespaces/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self
diff --git a/grails-test-examples/scaffolding/grails-app/assets/javascripts/application.js b/grails-test-examples/scaffolding/grails-app/assets/javascripts/application.js
index 8d1a6b5ece..1aa61d90f1 100644
--- a/grails-test-examples/scaffolding/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/scaffolding/grails-app/assets/javascripts/application.js
@@ -24,8 +24,8 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
-//= require webjars/dist/js/bootstrap.bundle.js
+//= require webjars/jquery/%/dist/jquery.js
+//= require webjars/bootstrap/%/dist/js/bootstrap.bundle.js
//= require_self
if (typeof jQuery !== 'undefined') {
diff --git a/grails-test-examples/scaffolding/grails-app/assets/stylesheets/application.css b/grails-test-examples/scaffolding/grails-app/assets/stylesheets/application.css
index f4e389e920..36fbe3267d 100644
--- a/grails-test-examples/scaffolding/grails-app/assets/stylesheets/application.css
+++ b/grails-test-examples/scaffolding/grails-app/assets/stylesheets/application.css
@@ -26,8 +26,8 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
-*= require webjars/dist/css/bootstrap.css
-*= require webjars/font/bootstrap-icons.css
+*= require webjars/bootstrap/%/dist/css/bootstrap.css
+*= require webjars/bootstrap-icons/%/font/bootstrap-icons.css
*= require grails.css
*= require_self
*/
diff --git a/grails-test-examples/views-functional-tests/grails-app/assets/javascripts/application.js b/grails-test-examples/views-functional-tests/grails-app/assets/javascripts/application.js
index 943ee08506..8da1ede7ff 100644
--- a/grails-test-examples/views-functional-tests/grails-app/assets/javascripts/application.js
+++ b/grails-test-examples/views-functional-tests/grails-app/assets/javascripts/application.js
@@ -24,7 +24,7 @@
// You're free to add application-wide JavaScript to this file, but it's generally better
// to create separate JavaScript files as needed.
//
-//= require webjars/dist/jquery.js
+//= require webjars/jquery/%/dist/jquery.js
//= require_tree .
//= require_self