-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grails-156: Update to Grails Redis Plugin to be compatible with Grail…
…s 7.x.x (#158)
- Loading branch information
Showing
30 changed files
with
270 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,8 @@ jobs: | |
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'adopt' | ||
java-version: 11 | ||
distribution: 'liberica' | ||
java-version: 17 | ||
- name: Setup Redis | ||
uses: supercharge/[email protected] | ||
with: | ||
|
@@ -31,7 +31,7 @@ jobs: | |
env: | ||
REDIS_HOST: redis | ||
REDIS_PORT: 6379 | ||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
with: | ||
arguments: build -Dgeb.env=chromeHeadless | ||
publish: | ||
|
@@ -42,8 +42,8 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'adopt' | ||
java-version: 11 | ||
distribution: 'liberica' | ||
java-version: 17 | ||
- name: Publish Artifacts (repo.grails.org) | ||
id: publish | ||
uses: gradle/gradle-build-action@v2 | ||
|
@@ -70,5 +70,5 @@ jobs: | |
BRANCH: gh-pages | ||
FOLDER: plugin/build/docs | ||
DOC_FOLDER: gh-pages | ||
COMMIT_EMAIL: [email protected] | ||
COMMIT_NAME: Puneet Behl | ||
COMMIT_EMAIL: '[email protected]' | ||
COMMIT_NAME: 'grails-build' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ jobs: | |
release: | ||
runs-on: ubuntu-latest | ||
env: | ||
GIT_USER_NAME: puneetbehl | ||
GIT_USER_EMAIL: [email protected] | ||
GIT_USER_NAME: 'grails-build' | ||
GIT_USER_EMAIL: '[email protected]' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -16,8 +16,8 @@ jobs: | |
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
distribution: 'liberica' | ||
java-version: '17' | ||
- name: Set the current release version | ||
id: release_version | ||
run: echo ::set-output name=release_version::${GITHUB_REF:11} | ||
|
@@ -60,8 +60,8 @@ jobs: | |
BRANCH: gh-pages | ||
FOLDER: plugin/build/docs | ||
DOC_FOLDER: gh-pages | ||
COMMIT_EMAIL: [email protected] | ||
COMMIT_NAME: Puneet Behl | ||
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }} | ||
COMMIT_NAME: ${{ env.GIT_USER_NAME }} | ||
VERSION: ${{ steps.release_version.outputs.release_version }} | ||
- name: Run post-release | ||
if: success() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apply from: "./loadProps.gradle" | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { url "https://repo.grails.org/grails/core" } | ||
maven { | ||
url = 'https://repo.gradle.org/gradle/libs-releases' | ||
description = 'Needed for Gradle Tooling API' | ||
} | ||
} | ||
dependencies { | ||
implementation "com.bertramlabs.plugins:asset-pipeline-gradle:${assetPipelineGrailVersion}" | ||
implementation "org.grails:grails-gradle-plugin:${grailsVersion}" | ||
implementation "org.gradle:gradle-tooling-api:${gradleToolingApiVersion}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Properties properties = new Properties() | ||
FileInputStream input = new FileInputStream(file("${rootDir.parentFile}/gradle.properties")) | ||
properties.load(input) | ||
input.close() | ||
|
||
for (String key : properties.stringPropertyNames()) { | ||
ext.set(key, properties.getProperty(key)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> | ||
<charset>UTF-8</charset> | ||
<pattern>%level %logger - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="error"> | ||
<appender-ref ref="STDOUT" /> | ||
</root> | ||
</configuration> |
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
examples/redis-demo/grails-app/controllers/com/example/IndexController.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.example | ||
|
||
class IndexController { | ||
|
||
BookCreateService bookCreateService | ||
|
||
def index() { | ||
render view: "/index", model: [book:bookCreateService.createOrGetBook()] | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ class UrlMappings { | |
} | ||
} | ||
|
||
"/"(view:"/index") | ||
"/"(controller: "index", action: "index") | ||
"500"(view:'/error') | ||
} | ||
} |
Oops, something went wrong.