Skip to content

Commit 1d4e478

Browse files
authored
Merge pull request #2073 from jdaugherty/9.0.x
apache coordinate move
2 parents 00fbc39 + bac60fc commit 1d4e478

File tree

729 files changed

+879
-708
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

729 files changed

+879
-708
lines changed

.github/renovate.json

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -20,42 +20,9 @@
2020
},
2121
{
2222
"matchPackageNames": [
23-
"org.grails:grails-bom",
24-
"org.grails:grails-bootstrap",
25-
"org.grails:grails-codecs",
26-
"org.grails:grails-console",
27-
"org.grails:grails-core",
28-
"org.grails:grails-databinding",
29-
"org.grails:grails-dependencies",
30-
"org.grails:grails-docs",
31-
"org.grails:grails-encoder",
32-
"org.grails:grails-gradle-model",
33-
"org.grails:grails-logging",
34-
"org.grails:grails-plugin-codecs",
35-
"org.grails:grails-plugin-controllers",
36-
"org.grails:grails-plugin-databinding",
37-
"org.grails:grails-plugin-datasource",
38-
"org.grails:grails-plugin-domain-class",
39-
"org.grails:grails-plugin-i18n",
40-
"org.grails:grails-plugin-interceptors",
41-
"org.grails:grails-plugin-mimetypes",
42-
"org.grails:grails-plugin-rest",
43-
"org.grails:grails-plugin-services",
44-
"org.grails:grails-plugin-url-mappings",
45-
"org.grails:grails-plugin-url-validation",
46-
"org.grails:grails-shell",
47-
"org.grails:grails-spring",
48-
"org.grails:grails-test",
49-
"org.grails:grails-validation",
50-
"org.grails:grails-web",
51-
"org.grails:grails-web-boot",
52-
"org.grails:grails-web-common",
53-
"org.grails:grails-web-databinding",
54-
"org.grails:grails-web-fileupload",
55-
"org.grails:grails-web-mvc",
56-
"org.grails:grails-web-url-mappings"
23+
"org.grails:grails-bom"
5724
],
58-
"groupName": "grails monorepo"
25+
"groupName": "grails bom"
5926
}
6027
]
6128
}

.github/workflows/gradle.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: "🐘 Setup Gradle"
2929
uses: gradle/actions/setup-gradle@v4
3030
with:
31-
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
31+
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
3232
- name: "🔨 Run Build"
3333
id: build
3434
env:
@@ -53,7 +53,7 @@ jobs:
5353
- name: "🐘 Setup Gradle"
5454
uses: gradle/actions/setup-gradle@v4
5555
with:
56-
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
56+
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
5757
- name: "▶️ Start MongoDB (needed for some tests)"
5858
uses: supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # v1.12.0 (Use commit sha as this is a 3rd party action)
5959
with:
@@ -81,7 +81,7 @@ jobs:
8181
- name: "🐘 Setup Gradle"
8282
uses: gradle/actions/setup-gradle@v4
8383
with:
84-
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
84+
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
8585
- name: "🔨 Run Build"
8686
id: build
8787
env:
@@ -103,15 +103,14 @@ jobs:
103103
- name: "🐘 Setup Gradle"
104104
uses: gradle/actions/setup-gradle@v4
105105
with:
106-
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
106+
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
107107
- name: "📤 Publish Snapshot to repo.grails.org"
108108
env:
109109
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
110110
GRADLE_PUBLISH_RELEASE: 'false'
111-
MAVEN_PUBLISH_USERNAME: ${{ secrets.MAVEN_PUBLISH_USERNAME }}
112-
MAVEN_PUBLISH_PASSWORD: ${{ secrets.MAVEN_PUBLISH_PASSWORD }}
113-
# NOTE: secrets.MAVEN_PUBLISH_URL == https://repo.grails.org/grails/plugins3-snapshot-local
114-
MAVEN_PUBLISH_URL: https://repo.grails.org/grails/libs-snapshots-local
111+
MAVEN_PUBLISH_URL: ${{ secrets.GRAILS_NEXUS_PUBLISH_SNAPSHOT_URL }}
112+
MAVEN_PUBLISH_USERNAME: ${{ secrets.NEXUS_USER }}
113+
MAVEN_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PW }}
115114
run: ./gradlew --no-build-cache publish
116115
docs:
117116
if: github.event_name == 'push'
@@ -130,7 +129,7 @@ jobs:
130129
- name: "🐘 Setup Gradle"
131130
uses: gradle/actions/setup-gradle@v4
132131
with:
133-
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
132+
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
134133
- name: "🔨 Build Docs"
135134
env:
136135
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
@@ -162,7 +161,7 @@ jobs:
162161
continue-on-error: true
163162
uses: actions/github-script@v7
164163
with:
165-
github-token: ${{ secrets.GH_TOKEN }} # must be a PAT since we're triggering on an external repo
164+
github-token: ${{ secrets.GRAILS_GH_TOKEN }} # must be a PAT since we're triggering on an external repo
166165
script: |
167166
try {
168167
const result = await github.rest.actions.createWorkflowDispatch({

.github/workflows/groovy-joint-workflow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: "🐘 Setup Gradle"
4848
uses: gradle/actions/setup-gradle@v4
4949
with:
50-
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
50+
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
5151
- name: "📝 Store Groovy version to use when building the project"
5252
id: groovy-version
5353
run: |
@@ -69,7 +69,7 @@ jobs:
6969
id: develocity-conf-2
7070
run: |
7171
echo "VALUE<<EOF" >> $GITHUB_OUTPUT
72-
echo "def isAuthenticated = System.getenv('DEVELOCITY_ACCESS_KEY') != null" >> $GITHUB_OUTPUT
72+
echo "def isAuthenticated = System.getenv('GRAILS_DEVELOCITY_ACCESS_KEY') != null" >> $GITHUB_OUTPUT
7373
echo "develocity {" >> $GITHUB_OUTPUT
7474
echo " server = 'https://ge.grails.org'" >> $GITHUB_OUTPUT
7575
echo " buildScan {" >> $GITHUB_OUTPUT
@@ -119,7 +119,7 @@ jobs:
119119
- name: "🐘 Setup Gradle"
120120
uses: gradle/actions/setup-gradle@v4
121121
with:
122-
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
122+
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
123123
- name: "🗄️ Restore local Maven repository from cache"
124124
uses: actions/cache@v4
125125
with:

.github/workflows/release-notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
- name: "📝 Update Release Draft"
2020
uses: release-drafter/release-drafter@v6
2121
env:
22-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
22+
GITHUB_TOKEN: ${{ secrets.GRAILS_GH_TOKEN }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: "🐘 Setup Gradle"
2424
uses: gradle/actions/setup-gradle@v4
2525
with:
26-
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
26+
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
2727
- name: "⚙️ Run pre-release"
2828
uses: apache/grails-github-actions/pre-release@asf
2929
- name: "🔍 Determine Target Branch"
@@ -84,7 +84,7 @@ jobs:
8484
- name: "🐘 Setup Gradle"
8585
uses: gradle/actions/setup-gradle@v4
8686
with:
87-
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
87+
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
8888
- name: "🚀 Release Sonatype Staging Repository"
8989
env:
9090
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
@@ -117,7 +117,7 @@ jobs:
117117
- name: "🐘 Setup Gradle"
118118
uses: gradle/actions/setup-gradle@v4
119119
with:
120-
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
120+
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
121121
- name: "📖 Generate documentation"
122122
env:
123123
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

build.gradle

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,15 @@ allprojects {
2222
}
2323

2424
repositories {
25+
// Used for testing locally against the latest snapshot of Groovy & for pulling dependencies in other repos
26+
// Usage: ./gradlew build -P"groovyVersion=X.X.X-SNAPSHOT"
27+
maven {
28+
name = 'ASF Snapshot repo'
29+
url = 'https://repository.apache.org/content/repositories/snapshots'
30+
}
2531
mavenCentral()
2632
maven { url = 'https://repo.grails.org/grails/core' }
2733
// mavenLocal() // Keep, this will be uncommented and used by CI (groovy-joint-workflow)
28-
if (customGroovyVersion?.endsWith('-SNAPSHOT')) {
29-
// Used for testing locally against the latest snapshot of Groovy
30-
// Usage: ./gradlew build -P"groovyVersion=X.X.X-SNAPSHOT"
31-
logger.lifecycle('Adding Groovy Snapshot Repo for project: {}, Using Groovy {}', name, customGroovyVersion)
32-
maven {
33-
name = 'ASF Snapshot repo'
34-
url = 'https://repository.apache.org/content/repositories/snapshots'
35-
}
36-
}
3734
if (System.getenv('GITHUB_MAVEN_PASSWORD') && !grailsVersion.endsWith('-SNAPSHOT')) {
3835
logger.lifecycle('Adding Grails Core Staging Repo for project: {}', name)
3936
maven {
@@ -58,34 +55,34 @@ def publishedProjects = [
5855
'grails-datastore-async',
5956
'grails-datastore-core',
6057
'grails-datastore-gorm',
61-
'grails-datastore-gorm-async',
58+
'grails-datamapping-async',
6259
//'grails-datastore-gorm-rx',
63-
'grails-datastore-gorm-support',
64-
'grails-datastore-gorm-tck',
65-
'grails-datastore-gorm-tck-base',
66-
'grails-datastore-gorm-tck-domains',
67-
'grails-datastore-gorm-validation',
60+
'grails-datamapping-support',
61+
'grails-datamapping-tck-tests',
62+
'grails-datamapping-tck-base',
63+
'grails-datamapping-tck-domains',
64+
'grails-datamapping-validation',
6865
'grails-datastore-web',
69-
'grails-gorm-testing-support',
66+
'grails-testing-support-datamapping',
7067
// simple
7168
'simple-gorm',
7269
// hibernate5
7370
'hibernate5-boot-plugin',
7471
'hibernate5-database-migration',
75-
'hibernate5-gorm',
72+
'hibernate5-core',
7673
'hibernate5-grails-plugin',
7774
// mongodb
7875
'mongodb-boot-plugin',
79-
'mongodb-gorm',
80-
'mongodb-gorm-bson',
81-
'mongodb-gorm-ext',
76+
'mongodb-core',
77+
'mongodb-bson',
78+
'mongodb-ext',
8279
'mongodb-grails-plugin',
83-
'mongodb-views-json-templates'
80+
'mongodb-gson-templates'
8481
]
8582
subprojects {
8683
if (name in publishedProjects) {
8784
// This has to be applied here
88-
apply plugin: 'org.grails.grails-publish'
85+
apply plugin: 'org.apache.grails.gradle.grails-publish'
8986
}
9087
}
9188

buildSrc/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ file('../gradle.properties').withInputStream {
88
}
99

1010
repositories {
11-
// mavenLocal()
11+
maven { url = 'https://repository.apache.org/content/repositories/snapshots' }
1212
maven { url = 'https://repo.grails.org/grails/core' }
1313
mavenCentral()
1414
if (System.getenv('GITHUB_MAVEN_PASSWORD')) {
@@ -23,9 +23,8 @@ repositories {
2323
}
2424

2525
dependencies {
26-
implementation platform("org.grails:grails-bom:${versions.getProperty('grailsVersion')}")
27-
implementation 'org.grails:grails-gradle-plugin'
26+
implementation platform("org.apache.grails:grails-bom:${versions.getProperty('grailsVersion')}")
27+
implementation 'org.apache.grails:grails-gradle-plugins'
2828
implementation 'com.bertramlabs.plugins:asset-pipeline-gradle'
29-
implementation 'org.grails.plugins:views-gradle'
3029
implementation 'org.springframework.boot:spring-boot-gradle-plugin'
3130
}

docs/guide-developer/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
version project.projectVersion
8-
group 'org.grails'
8+
group 'org.apache.grails'
99

1010
def asciidoctorAttributes = [
1111
icons : 'font',

docs/guide-developer/src/main/docs/gettingStarted.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ The project is essentially a multi-project Gradle build. There is a core API and
3131

3232
* `grails-datastore-core` - The core API, this provides core interfaces for implementing a GORM provider
3333
* `grails-datastore-gorm` - The runtime meta-programming and AST transformation infrastructure behind GORM. This also provides end users with APIs like `grails.gorm.CriteriaBuilder` and `grails.gorm.DetachedCriteria`
34-
* `grails-datastore-gorm-support` - Support classes for easing the writing of a GORM plugin for Grails
35-
* `grails-datastore-gorm-tck` - The TCK that includes hundreds of Spock specifications that a GORM implementation will need to pass
34+
* `grails-datamapping-support` - Support classes for easing the writing of a GORM plugin for Grails
35+
* `grails-datamapping-tck-tests` - The TCK that includes hundreds of Spock specifications that a GORM implementation will need to pass
3636
* `grails-datastore-web` - Classes required to integrate GORM into a web tier
3737

3838
In addition to this, there are separate projects of GORM implementations for various datastores:

docs/guide-developer/src/main/docs/stepByStep.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ With contents:
3030
dependencies {
3131
implementation project(':grails-datastore-gorm'),
3232
project(':grails-datastore-web'),
33-
project(':grails-datastore-gorm-support')
33+
project(':grails-datamapping-support')
3434
35-
testImplementation project(':grails-datastore-gorm-tck')
35+
testImplementation project(':grails-datamapping-tck-tests')
3636
testRuntime "javax.servlet:javax.servlet-api:$servletApiVersion"
3737
3838
}

0 commit comments

Comments
 (0)