Skip to content

Commit 35cb12a

Browse files
committed
feedback: more gradle bom usage cleanup
1 parent 50c20a9 commit 35cb12a

File tree

10 files changed

+9
-30
lines changed

10 files changed

+9
-30
lines changed

build.gradle

-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
buildscript {
2-
repositories {
3-
maven { url = 'https://repo.grails.org/grails/core' }
4-
}
5-
dependencies {
6-
classpath platform("org.grails:grails-bom:${grailsVersion}"), {
7-
exclude group: 'org.grails.plugins', module: 'views-gradle'
8-
exclude group: 'org.grails.plugins', module: 'views-json'
9-
}
10-
classpath 'org.grails:grails-gradle-plugin'
11-
}
12-
}
13-
141
ext {
152
isCI = System.getenv('CI') != null
163
}

fields/plugin/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ext {
1818

1919
dependencies {
2020
implementation platform("org.grails:grails-bom:${grailsVersion}"), {
21-
exclude group: 'org.grails.plugins', module: 'gsp'
21+
exclude group: 'org.grails.plugins', module: 'gsp' // as a safeguard, exclude projects in this repo to ensure we pick the right version
2222
}
2323

2424
implementation project(':grails-plugin-gsp')

scaffolding/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ ext {
1616

1717
dependencies {
1818
implementation platform("org.grails:grails-bom:$grailsVersion"), {
19-
exclude group: 'org.grails.plugins', module: 'views-gradle'
20-
exclude group: 'org.grails.plugins', module: 'views-json'
19+
// as a safeguard, exclude projects in this repo that included transitively to ensure we pick the right version
2120
exclude group: 'org.grails', module: 'views-core'
2221
exclude group: 'org.grails', module: 'views-json-testing-support'
2322
exclude group: 'org.grails.plugins', module: 'scaffolding'

views/core/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ ext {
1313

1414
dependencies {
1515
implementation platform("org.grails:grails-bom:$grailsVersion"), {
16-
exclude group: 'org.grails.plugins', module: 'views-gradle'
17-
exclude group: 'org.grails.plugins', module: 'views-json'
16+
// as a safeguard, exclude projects in this repo that included transitively to ensure we pick the right version
1817
exclude group: 'org.grails', module: 'views-core'
1918
exclude group: 'org.grails', module: 'views-json-testing-support'
2019
exclude group: 'org.grails.plugins', module: 'scaffolding'

views/examples/functional-tests-plugin/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ group = 'functional.tests.plugin'
1010

1111
dependencies {
1212
implementation platform("org.grails:grails-bom:${grailsVersion}"), {
13-
exclude group: 'org.grails.plugins', module: 'views-gradle'
14-
exclude group: 'org.grails.plugins', module: 'views-json'
13+
// as a safeguard, exclude projects in this repo that included transitively to ensure we pick the right version
1514
exclude group: 'org.grails', module: 'views-core'
1615
}
1716

views/examples/functional-tests/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ group = 'functional.tests'
1010

1111
dependencies {
1212
implementation platform("org.grails:grails-bom:$grailsVersion"), {
13-
exclude group: 'org.grails.plugins', module: 'views-gradle'
14-
exclude group: 'org.grails.plugins', module: 'views-json'
13+
// as a safeguard, exclude projects in this repo that included transitively to ensure we pick the right version
1514
exclude group: 'org.grails', module: 'views-core'
1615
exclude group: 'org.grails', module: 'views-json-testing-support'
1716
exclude group: 'org.grails.plugins', module: 'scaffolding'

views/gradle-plugin/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ repositories {
4646

4747
dependencies {
4848
implementation platform("org.grails:grails-bom:$grailsVersion"), {
49-
exclude group: 'org.grails.plugins', module: 'views-gradle'
50-
exclude group: 'org.grails.plugins', module: 'views-json'
49+
// as a safeguard, exclude projects in this repo that included transitively to ensure we pick the right version
5150
exclude group: 'org.grails', module: 'views-core'
5251
exclude group: 'org.grails', module: 'views-json-testing-support'
5352
exclude group: 'org.grails.plugins', module: 'scaffolding'

views/json-testing-support/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ ext {
1313

1414
dependencies {
1515
implementation platform("org.grails:grails-bom:$grailsVersion"), {
16-
exclude group: 'org.grails.plugins', module: 'views-gradle'
17-
exclude group: 'org.grails.plugins', module: 'views-json'
16+
// as a safeguard, exclude projects in this repo that included transitively to ensure we pick the right version
1817
exclude group: 'org.grails', module: 'views-core'
1918
exclude group: 'org.grails', module: 'views-json-testing-support'
2019
exclude group: 'org.grails.plugins', module: 'scaffolding'

views/json/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ ext {
1414

1515
dependencies {
1616
implementation platform("org.grails:grails-bom:$grailsVersion"), {
17-
exclude group: 'org.grails.plugins', module: 'views-gradle'
18-
exclude group: 'org.grails.plugins', module: 'views-json'
17+
// as a safeguard, exclude projects in this repo that included transitively to ensure we pick the right version
1918
exclude group: 'org.grails', module: 'views-core'
2019
exclude group: 'org.grails', module: 'views-json-testing-support'
2120
exclude group: 'org.grails.plugins', module: 'scaffolding'

views/markup/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ ext {
1414

1515
dependencies {
1616
implementation platform("org.grails:grails-bom:$grailsVersion"), {
17-
exclude group: 'org.grails.plugins', module: 'views-gradle'
18-
exclude group: 'org.grails.plugins', module: 'views-json'
17+
// as a safeguard, exclude projects in this repo that included transitively to ensure we pick the right version
1918
exclude group: 'org.grails', module: 'views-core'
2019
exclude group: 'org.grails', module: 'views-json-testing-support'
2120
exclude group: 'org.grails.plugins', module: 'scaffolding'

0 commit comments

Comments
 (0)