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 2025/06/24 19:24:14 UTC
(grails-core) branch test-and-development-only created (now 38a4f48b96)
This is an automated email from the ASF dual-hosted git repository.
jamesfredley pushed a change to branch test-and-development-only
in repository https://gitbox.apache.org/repos/asf/grails-core.git
at 38a4f48b96 fix: scope webjars as testAndDevelopmentOnly
This branch includes the following new commits:
new 38a4f48b96 fix: scope webjars as testAndDevelopmentOnly
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(grails-core) 01/01: fix: scope webjars as testAndDevelopmentOnly
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jamesfredley pushed a commit to branch test-and-development-only
in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 38a4f48b9665b1d0710bec14a4446c2bd537ef17
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Tue Jun 24 15:24:01 2025 -0400
fix: scope webjars as testAndDevelopmentOnly
---
grails-data-neo4j/examples/grails3-neo4j-hibernate/build.gradle | 4 ++--
grails-data-neo4j/examples/grails3-neo4j/build.gradle | 4 ++--
.../src/en/guide/commandLine/gradleBuild/gradleDependencies.adoc | 6 +++---
grails-profiles/base/profile.yml | 6 +++---
grails-test-examples/app1/build.gradle | 4 ++--
grails-test-examples/app2/build.gradle | 4 ++--
grails-test-examples/demo33/build.gradle | 6 +++---
grails-test-examples/geb/build.gradle | 6 +++---
grails-test-examples/gsp-sitemesh3/build.gradle | 6 +++---
.../hibernate5/grails-database-per-tenant/build.gradle | 4 ++--
grails-test-examples/hibernate5/grails-hibernate/build.gradle | 4 ++--
.../hibernate5/grails-partitioned-multi-tenancy/build.gradle | 4 ++--
.../hibernate5/grails-schema-per-tenant/build.gradle | 4 ++--
grails-test-examples/hibernate5/issue450/build.gradle | 6 +++---
grails-test-examples/hyphenated/build.gradle | 4 ++--
grails-test-examples/issue-11102/build.gradle | 6 +++---
grails-test-examples/micronaut/build.gradle | 6 +++---
grails-test-examples/mongodb/base/build.gradle | 4 ++--
grails-test-examples/mongodb/database-per-tenant/build.gradle | 4 ++--
grails-test-examples/mongodb/gson-templates/build.gradle | 4 ++--
grails-test-examples/mongodb/hibernate5/build.gradle | 4 ++--
grails-test-examples/namespaces/build.gradle | 4 ++--
grails-test-examples/views-functional-tests/build.gradle | 4 ++--
23 files changed, 54 insertions(+), 54 deletions(-)
diff --git a/grails-data-neo4j/examples/grails3-neo4j-hibernate/build.gradle b/grails-data-neo4j/examples/grails3-neo4j-hibernate/build.gradle
index 07ccafa7de..054b1a843b 100644
--- a/grails-data-neo4j/examples/grails3-neo4j-hibernate/build.gradle
+++ b/grails-data-neo4j/examples/grails3-neo4j-hibernate/build.gradle
@@ -38,8 +38,8 @@ dependencies {
implementation "org.apache.grails:grails-data-hibernate5:$hibernateDatastoreVersion"
implementation "org.hibernate:hibernate-ehcache:$hibernateEhcacheVersion"
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly "cloud.wondrify:asset-pipeline-grails:$assetPipelineVersion"
runtimeOnly "org.apache.grails:grails-scaffolding:$scaffoldingVersion"
diff --git a/grails-data-neo4j/examples/grails3-neo4j/build.gradle b/grails-data-neo4j/examples/grails3-neo4j/build.gradle
index df54f45dfc..2ec3ec59b3 100644
--- a/grails-data-neo4j/examples/grails3-neo4j/build.gradle
+++ b/grails-data-neo4j/examples/grails3-neo4j/build.gradle
@@ -36,8 +36,8 @@ dependencies {
implementation project(":grails-plugin")
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly "cloud.wondrify:asset-pipeline-grails:$assetPipelineVersion"
runtimeOnly "org.apache.grails:grails-scaffolding:$scaffoldingVersion"
diff --git a/grails-doc/src/en/guide/commandLine/gradleBuild/gradleDependencies.adoc b/grails-doc/src/en/guide/commandLine/gradleBuild/gradleDependencies.adoc
index f07260a093..3358704236 100644
--- a/grails-doc/src/en/guide/commandLine/gradleBuild/gradleDependencies.adoc
+++ b/grails-doc/src/en/guide/commandLine/gradleBuild/gradleDependencies.adoc
@@ -25,9 +25,9 @@ The default dependencies for the Grails Web application can be seen below:
----
dependencies {
profile "org.apache.grails.profiles:web"
- developmentOnly "org.webjars.npm:bootstrap"
- developmentOnly "org.webjars.npm:bootstrap-icons"
- developmentOnly "org.webjars.npm:jquery"
+ testAndDevelopmentOnly "org.webjars.npm:bootstrap"
+ testAndDevelopmentOnly "org.webjars.npm:bootstrap-icons"
+ testAndDevelopmentOnly "org.webjars.npm:jquery"
implementation platform("org.apache.grails:grails-bom:$grailsVersion")
implementation "org.apache.grails:grails-core"
implementation "org.apache.grails:grails-logging"
diff --git a/grails-profiles/base/profile.yml b/grails-profiles/base/profile.yml
index 372dc4470c..8a49cc7774 100644
--- a/grails-profiles/base/profile.yml
+++ b/grails-profiles/base/profile.yml
@@ -30,11 +30,11 @@ build:
dependencies:
- scope: build
coords: "org.apache.grails:grails-gradle-plugins"
- - scope: developmentOnly
+ - scope: testAndDevelopmentOnly
coords: "org.webjars.npm:bootstrap"
- - scope: developmentOnly
+ - scope: testAndDevelopmentOnly
coords: "org.webjars.npm:bootstrap-icons"
- - scope: developmentOnly
+ - scope: testAndDevelopmentOnly
coords: "org.webjars.npm:jquery"
- scope: implementation
coords: "org.springframework.boot:spring-boot-starter-logging"
diff --git a/grails-test-examples/app1/build.gradle b/grails-test-examples/app1/build.gradle
index 2803a5ecca..fef740daf9 100644
--- a/grails-test-examples/app1/build.gradle
+++ b/grails-test-examples/app1/build.gradle
@@ -43,8 +43,8 @@ dependencies {
implementation 'org.apache.grails:grails-cache'
implementation 'org.apache.grails:grails-scaffolding'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'org.apache.grails:grails-fields'
diff --git a/grails-test-examples/app2/build.gradle b/grails-test-examples/app2/build.gradle
index ff6635dc84..014db19be5 100644
--- a/grails-test-examples/app2/build.gradle
+++ b/grails-test-examples/app2/build.gradle
@@ -42,8 +42,8 @@ dependencies {
implementation 'org.apache.grails:grails-data-hibernate5'
implementation 'org.apache.grails:grails-cache'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'org.apache.grails:grails-scaffolding'
diff --git a/grails-test-examples/demo33/build.gradle b/grails-test-examples/demo33/build.gradle
index 2e43fc5362..74dc901e95 100644
--- a/grails-test-examples/demo33/build.gradle
+++ b/grails-test-examples/demo33/build.gradle
@@ -44,9 +44,9 @@ dependencies {
implementation 'org.apache.grails:grails-data-hibernate5'
implementation 'org.apache.grails:grails-views-gson'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:bootstrap'
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:bootstrap'
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'com.h2database:h2'
diff --git a/grails-test-examples/geb/build.gradle b/grails-test-examples/geb/build.gradle
index 75c7828306..a38778d967 100644
--- a/grails-test-examples/geb/build.gradle
+++ b/grails-test-examples/geb/build.gradle
@@ -48,9 +48,9 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-tomcat'
implementation 'org.springframework.boot:spring-boot-starter-validation'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:bootstrap'
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:bootstrap'
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'com.h2database:h2'
diff --git a/grails-test-examples/gsp-sitemesh3/build.gradle b/grails-test-examples/gsp-sitemesh3/build.gradle
index e48c4a0cb4..91552292a7 100644
--- a/grails-test-examples/gsp-sitemesh3/build.gradle
+++ b/grails-test-examples/gsp-sitemesh3/build.gradle
@@ -37,9 +37,9 @@ dependencies {
implementation 'org.apache.grails:grails-controllers'
implementation 'org.apache.grails:grails-rest-transforms'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:bootstrap'
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:bootstrap'
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'org.apache.grails:grails-gsp'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
diff --git a/grails-test-examples/hibernate5/grails-database-per-tenant/build.gradle b/grails-test-examples/hibernate5/grails-database-per-tenant/build.gradle
index 6821acabd2..d597b372c8 100644
--- a/grails-test-examples/hibernate5/grails-database-per-tenant/build.gradle
+++ b/grails-test-examples/hibernate5/grails-database-per-tenant/build.gradle
@@ -34,8 +34,8 @@ dependencies {
implementation 'org.apache.grails:grails-rest-transforms'
implementation 'org.apache.grails:grails-gsp'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'com.h2database:h2'
diff --git a/grails-test-examples/hibernate5/grails-hibernate/build.gradle b/grails-test-examples/hibernate5/grails-hibernate/build.gradle
index 911d26905d..976ccb2cc3 100644
--- a/grails-test-examples/hibernate5/grails-hibernate/build.gradle
+++ b/grails-test-examples/hibernate5/grails-hibernate/build.gradle
@@ -36,8 +36,8 @@ dependencies {
implementation 'org.apache.grails:grails-rest-transforms'
implementation 'org.apache.grails:grails-gsp'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'com.h2database:h2'
diff --git a/grails-test-examples/hibernate5/grails-partitioned-multi-tenancy/build.gradle b/grails-test-examples/hibernate5/grails-partitioned-multi-tenancy/build.gradle
index b67258a941..7b5688631f 100644
--- a/grails-test-examples/hibernate5/grails-partitioned-multi-tenancy/build.gradle
+++ b/grails-test-examples/hibernate5/grails-partitioned-multi-tenancy/build.gradle
@@ -34,8 +34,8 @@ dependencies {
implementation 'org.apache.grails:grails-rest-transforms'
implementation 'org.apache.grails:grails-gsp'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'com.h2database:h2'
diff --git a/grails-test-examples/hibernate5/grails-schema-per-tenant/build.gradle b/grails-test-examples/hibernate5/grails-schema-per-tenant/build.gradle
index bb13973529..9eecd223dd 100644
--- a/grails-test-examples/hibernate5/grails-schema-per-tenant/build.gradle
+++ b/grails-test-examples/hibernate5/grails-schema-per-tenant/build.gradle
@@ -34,8 +34,8 @@ dependencies {
implementation 'org.apache.grails:grails-rest-transforms'
implementation 'org.apache.grails:grails-gsp'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'com.h2database:h2'
diff --git a/grails-test-examples/hibernate5/issue450/build.gradle b/grails-test-examples/hibernate5/issue450/build.gradle
index 2c6acf9f88..bffccd1283 100644
--- a/grails-test-examples/hibernate5/issue450/build.gradle
+++ b/grails-test-examples/hibernate5/issue450/build.gradle
@@ -34,9 +34,9 @@ dependencies {
implementation 'org.apache.grails:grails-rest-transforms'
implementation 'org.apache.grails:grails-gsp'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:bootstrap'
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:bootstrap'
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'com.h2database:h2'
diff --git a/grails-test-examples/hyphenated/build.gradle b/grails-test-examples/hyphenated/build.gradle
index 5ee7f88b6a..da50797481 100644
--- a/grails-test-examples/hyphenated/build.gradle
+++ b/grails-test-examples/hyphenated/build.gradle
@@ -40,8 +40,8 @@ dependencies {
implementation 'org.apache.grails:grails-data-hibernate5'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly "org.hibernate:hibernate-ehcache:$hibernate5Version", {
// exclude javax variant of hibernate-core
diff --git a/grails-test-examples/issue-11102/build.gradle b/grails-test-examples/issue-11102/build.gradle
index 1a32c46fc2..37ebc84096 100644
--- a/grails-test-examples/issue-11102/build.gradle
+++ b/grails-test-examples/issue-11102/build.gradle
@@ -50,9 +50,9 @@ dependencies {
implementation 'org.apache.grails:grails-events'
implementation 'org.apache.grails:grails-gsp'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:bootstrap'
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:bootstrap'
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
console 'org.apache.grails:grails-console'
profile 'org.apache.grails.profiles:web'
diff --git a/grails-test-examples/micronaut/build.gradle b/grails-test-examples/micronaut/build.gradle
index 4b563af9e3..a64c6cc71e 100644
--- a/grails-test-examples/micronaut/build.gradle
+++ b/grails-test-examples/micronaut/build.gradle
@@ -60,9 +60,9 @@ dependencies {
implementation 'org.apache.grails:grails-gsp'
compileOnly 'io.micronaut:micronaut-inject-groovy'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:bootstrap'
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:bootstrap'
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
console 'org.apache.grails:grails-console'
profile 'org.apache.grails.profiles:web'
diff --git a/grails-test-examples/mongodb/base/build.gradle b/grails-test-examples/mongodb/base/build.gradle
index 5f2b025641..62df29af98 100644
--- a/grails-test-examples/mongodb/base/build.gradle
+++ b/grails-test-examples/mongodb/base/build.gradle
@@ -34,8 +34,8 @@ dependencies {
implementation 'org.apache.grails:grails-web-boot'
implementation 'org.apache.grails:grails-gsp'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'org.fusesource.jansi:jansi'
diff --git a/grails-test-examples/mongodb/database-per-tenant/build.gradle b/grails-test-examples/mongodb/database-per-tenant/build.gradle
index 265b14a167..ecf4a54e79 100644
--- a/grails-test-examples/mongodb/database-per-tenant/build.gradle
+++ b/grails-test-examples/mongodb/database-per-tenant/build.gradle
@@ -34,8 +34,8 @@ dependencies {
implementation 'org.apache.grails:grails-web-boot'
implementation 'org.apache.grails:grails-gsp'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'org.fusesource.jansi:jansi'
diff --git a/grails-test-examples/mongodb/gson-templates/build.gradle b/grails-test-examples/mongodb/gson-templates/build.gradle
index 8188cb3ee7..50bf325546 100644
--- a/grails-test-examples/mongodb/gson-templates/build.gradle
+++ b/grails-test-examples/mongodb/gson-templates/build.gradle
@@ -37,8 +37,8 @@ dependencies {
implementation 'org.apache.grails:grails-url-mappings'
implementation 'org.apache.grails.data:grails-data-mongodb-core'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'org.springframework.boot:spring-boot-autoconfigure'
runtimeOnly 'org.springframework.boot:spring-boot-starter-logging'
diff --git a/grails-test-examples/mongodb/hibernate5/build.gradle b/grails-test-examples/mongodb/hibernate5/build.gradle
index c0a7430a75..9dcaeac4cb 100644
--- a/grails-test-examples/mongodb/hibernate5/build.gradle
+++ b/grails-test-examples/mongodb/hibernate5/build.gradle
@@ -35,8 +35,8 @@ dependencies {
implementation 'org.apache.grails:grails-gsp'
implementation 'org.apache.grails:grails-data-hibernate5'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'com.h2database:h2'
diff --git a/grails-test-examples/namespaces/build.gradle b/grails-test-examples/namespaces/build.gradle
index 494b8d5f27..e97ea6f964 100644
--- a/grails-test-examples/namespaces/build.gradle
+++ b/grails-test-examples/namespaces/build.gradle
@@ -41,8 +41,8 @@ dependencies {
implementation 'org.apache.grails:grails-data-hibernate5'
implementation 'org.apache.grails:grails-cache'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
runtimeOnly 'cloud.wondrify:asset-pipeline-grails'
runtimeOnly 'org.apache.grails:grails-scaffolding'
diff --git a/grails-test-examples/views-functional-tests/build.gradle b/grails-test-examples/views-functional-tests/build.gradle
index 2edbd21bfa..4106e77e09 100644
--- a/grails-test-examples/views-functional-tests/build.gradle
+++ b/grails-test-examples/views-functional-tests/build.gradle
@@ -54,8 +54,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-logging'
implementation 'org.springframework.boot:spring-boot-starter-tomcat'
- developmentOnly platform(project(':grails-bom'))
- developmentOnly 'org.webjars.npm:jquery'
+ testAndDevelopmentOnly platform(project(':grails-bom'))
+ testAndDevelopmentOnly 'org.webjars.npm:jquery'
compileOnly 'org.slf4j:slf4j-api' // Provided by Tomcat