Skip to content

Commit 0ea3bbd

Browse files
authored
Merge pull request #9 from sbglasius/6.x
Upgrade Grails Cache Redis Plugin and Prepare for New Grails 6.x Release Note: Still pending review, but need a snapshot build
2 parents 3e9d985 + fc69658 commit 0ea3bbd

File tree

77 files changed

+2386
-1111
lines changed

Some content is hidden

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

77 files changed

+2386
-1111
lines changed

.github/release-drafter.yml

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
name-template: $RESOLVED_VERSION
2+
tag-template: v$RESOLVED_VERSION
3+
pull-request:
4+
title-templates:
5+
fix: '🐛 $TITLE (#$NUMBER)'
6+
feat: '🚀 $TITLE (#$NUMBER)'
7+
default: '$TITLE (#$NUMBER)'
8+
autolabeler:
9+
- label: 'bug'
10+
branch:
11+
- '/fix\/.+/'
12+
title:
13+
- '/fix/i'
14+
- label: 'improvement'
15+
branch:
16+
- '/improv\/.+/'
17+
title:
18+
- '/improv/i'
19+
- label: 'feature'
20+
branch:
21+
- '/feature\/.+/'
22+
title:
23+
- '/feat/i'
24+
- label: 'documentation'
25+
branch:
26+
- '/docs\/.+/'
27+
title:
28+
- '/docs/i'
29+
- label: 'maintenance'
30+
branch:
31+
- '/(chore|refactor|style|test|ci|perf|build)\/.+/'
32+
title:
33+
- '/(chore|refactor|style|test|ci|perf|build)/i'
34+
- label: 'chore'
35+
branch:
36+
- '/chore\/.+/'
37+
title:
38+
- '/chore/i'
39+
- label: 'refactor'
40+
branch:
41+
- '/refactor\/.+/'
42+
title:
43+
- '/refactor/i'
44+
- label: 'style'
45+
branch:
46+
- '/style\/.+/'
47+
title:
48+
- '/style/i'
49+
- label: 'test'
50+
branch:
51+
- '/test\/.+/'
52+
title:
53+
- '/test/i'
54+
- label: 'ci'
55+
branch:
56+
- '/ci\/.+/'
57+
title:
58+
- '/ci/i'
59+
- label: 'perf'
60+
branch:
61+
- '/perf\/.+/'
62+
title:
63+
- '/perf/i'
64+
- label: 'build'
65+
branch:
66+
- '/build\/.+/'
67+
title:
68+
- '/build/i'
69+
- label: 'deps'
70+
branch:
71+
- '/deps\/.+/'
72+
title:
73+
- '/deps/i'
74+
- label: 'revert'
75+
branch:
76+
- '/revert\/.+/'
77+
title:
78+
- '/revert/i'
79+
categories:
80+
- title: '🚀 Features'
81+
labels:
82+
- 'feature'
83+
- "type: enhancement"
84+
- "type: new feature"
85+
- "type: major"
86+
- "type: minor"
87+
- title: '💡 Improvements'
88+
labels:
89+
- 'improvement'
90+
- "type: improvement"
91+
92+
- title: '🐛 Bug Fixes'
93+
labels:
94+
- 'fix'
95+
- 'bug'
96+
- "type: bug"
97+
- title: '📚 Documentation'
98+
labels:
99+
- 'docs'
100+
- title: '🔧 Maintenance'
101+
labels:
102+
- 'maintenance'
103+
- 'chore'
104+
- 'refactor'
105+
- 'style'
106+
- 'test'
107+
- 'ci'
108+
- 'perf'
109+
- 'build'
110+
- "type: ci"
111+
- "type: build"
112+
- title: '⏪ Reverts'
113+
labels:
114+
- 'revert'
115+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
116+
version-resolver:
117+
major:
118+
labels:
119+
- 'type: major'
120+
minor:
121+
labels:
122+
- 'type: minor'
123+
patch:
124+
labels:
125+
- 'type: patch'
126+
default: patch
127+
template: |
128+
## What's Changed
129+
130+
$CHANGES
131+
132+
## Contributors
133+
134+
$CONTRIBUTORS

.github/renovate.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"extends": [
3+
"config:base"
4+
],
5+
"labels": ["type: dependency upgrade"],
6+
"packageRules": [
7+
{
8+
"matchUpdateTypes": ["major"],
9+
"enabled": false
10+
},
11+
{
12+
"matchPackagePatterns": ["*"],
13+
"allowedVersions": "!/SNAPSHOT$/"
14+
},
15+
{
16+
"matchPackagePatterns": [
17+
"^org\\.codehaus\\.groovy"
18+
],
19+
"groupName": "groovy monorepo"
20+
},
21+
{
22+
"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"
57+
],
58+
"groupName": "grails monorepo"
59+
}
60+
]
61+
}

.github/workflows/gradle.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: "Java CI"
2+
on:
3+
push:
4+
branches:
5+
- '[4-9]+.[0-9]+.x'
6+
pull_request:
7+
branches:
8+
- '[4-9]+.[0-9]+.x'
9+
workflow_dispatch:
10+
jobs:
11+
test_project:
12+
name: "Test Project"
13+
runs-on: ubuntu-24.04
14+
strategy:
15+
fail-fast: true
16+
matrix:
17+
java: [17]
18+
steps:
19+
- name: "📥 Checkout repository"
20+
uses: actions/checkout@v4
21+
- name: "☕️ Setup JDK"
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: ${{ matrix.java }}
25+
distribution: liberica
26+
- name: "🐘 Setup Gradle"
27+
uses: gradle/actions/setup-gradle@v4
28+
with:
29+
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
30+
- name: "🏃 Run tests"
31+
run: ./gradlew check
32+
- name: "🏃 Run integration tests"
33+
working-directory: ./examples/testapp1
34+
run: ./gradlew integrationTest
35+
publish_snapshot:
36+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
37+
name: "Build Project and Publish Snapshot release"
38+
needs: test_project
39+
runs-on: ubuntu-24.04
40+
permissions:
41+
contents: write # updates gh-pages branch
42+
packages: write # publishes snapshot to GitHub Packages
43+
steps:
44+
- name: "📥 Checkout repository"
45+
uses: actions/checkout@v4
46+
- name: "☕️ Setup JDK"
47+
uses: actions/setup-java@v4
48+
with:
49+
java-version: 17
50+
distribution: liberica
51+
- name: "🐘 Setup Gradle"
52+
uses: gradle/actions/setup-gradle@v4
53+
with:
54+
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
55+
- name: "🔨 Build Project"
56+
run: ./gradlew build
57+
- name: "📤 Publish Snapshot version to Artifactory (repo.grails.org)"
58+
env:
59+
GRAILS_PUBLISH_RELEASE: 'false'
60+
MAVEN_PUBLISH_USERNAME: ${{ secrets.MAVEN_PUBLISH_USERNAME }}
61+
MAVEN_PUBLISH_PASSWORD: ${{ secrets.MAVEN_PUBLISH_PASSWORD }}
62+
MAVEN_PUBLISH_URL: 'https://repo.grails.org/artifactory/plugins3-snapshots-local'
63+
run: ./gradlew publish
64+
- name: "📖 Generate Snapshot Documentation"
65+
run: ./gradlew docs
66+
- name: "📤 Publish Snapshot Documentation to Github Pages"
67+
uses: apache/grails-github-actions/deploy-github-pages@asf
68+
env:
69+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
GRADLE_PUBLISH_RELEASE: 'false'
71+
SOURCE_FOLDER: build/docs

.github/workflows/release-notes.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Release Drafter"
2+
on:
3+
issues:
4+
types: [closed, reopened]
5+
push:
6+
branches:
7+
- master
8+
- '[4-9]+.[0-9]+.x'
9+
pull_request:
10+
types: [opened, reopened, synchronize]
11+
pull_request_target:
12+
types: [opened, reopened, synchronize]
13+
jobs:
14+
update_release_draft:
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
runs-on: ubuntu-24.04
19+
steps:
20+
- name: "📝 Update Release Draft"
21+
uses: release-drafter/release-drafter@v6
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: "Release"
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
release:
7+
name: "Publish Release"
8+
runs-on: ubuntu-24.04
9+
permissions:
10+
packages: read # for pre-release workflow
11+
contents: write # to commit changes related to the release and publish documentation to gh-pages
12+
issues: write # to modify milestones
13+
steps:
14+
- name: "📥 Checkout repository"
15+
uses: actions/checkout@v4
16+
- name: "☕️ Setup JDK"
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: 17
20+
distribution: liberica
21+
- name: "🐘 Setup Gradle"
22+
uses: gradle/actions/setup-gradle@v4
23+
with:
24+
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
25+
- name: "📝 Store the current release version"
26+
run: |
27+
echo "Release version: ${GITHUB_REF:11}"
28+
echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
29+
- name: "⚙ Run pre-release"
30+
uses: apache/grails-github-actions/pre-release@asf
31+
- name: "🔐 Generate key file for artifact signing"
32+
env:
33+
SECRING_FILE: ${{ secrets.SECRING_FILE }}
34+
run: echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
35+
- name: "📤 Publish artifacts to Sonatype"
36+
env:
37+
GRAILS_PUBLISH_RELEASE: 'true'
38+
NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }}
39+
NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }}
40+
NEXUS_PUBLISH_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }}
41+
NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.NEXUS_PUBLISH_STAGING_PROFILE_ID }}
42+
SIGNING_KEY: ${{ secrets.SIGNING_KEY_ID }}
43+
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
44+
run: >
45+
./gradlew
46+
-Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg
47+
publishToSonatype
48+
closeAndReleaseSonatypeStagingRepository
49+
- name: "📖 Generate Documentation"
50+
run: ./gradlew docs
51+
- name: "📤 Publish Documentation to Github Pages"
52+
uses: apache/grails-github-actions/deploy-github-pages@asf
53+
env:
54+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
GRADLE_PUBLISH_RELEASE: 'true'
56+
SOURCE_FOLDER: build/docs
57+
VERSION: ${{ env.RELEASE_VERSION }}
58+
- name: "⚙️ Run post-release"
59+
uses: apache/grails-github-actions/post-release@asf

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ build/
99
.project
1010
.settings
1111
.classpath
12+
/bin/

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)