This repository was archived by the owner on Mar 13, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 72
Project cleanup #992
Merged
Merged
Project cleanup #992
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5020afc
chore: major project cleanup
matrei eeaae75
ci: fix problems
matrei 5901ff4
build: add the `slf4jPreventExclusion` property
matrei 8f7cdb7
use GrailsStringUtils.trimToNull() instead of apache commons version
jamesfredley 56c646a
Merge pull request #993 from grails/use-GrailsStringUtils-trimToNull
jamesfredley 9a2748c
build: pr feedback
matrei e0c7160
build: updated pr feedback
matrei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,56 +1,57 @@ | ||
name: Publish Docs | ||
name: "Publish Docs" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: 'The Tag or Branch Name' | ||
required: true | ||
env: | ||
GIT_USER_NAME: grails-build | ||
GIT_USER_EMAIL: [email protected] | ||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
env: | ||
GIT_USER_NAME: 'grails-build' | ||
GIT_USER_EMAIL: '[email protected]' | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout repository | ||
- name: "📥 Checkout repository" | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
ref: ${{github.event.inputs.ref}} | ||
- name: Set up JDK | ||
ref: ${{ github.event.inputs.ref }} | ||
- name: "👀 Find the project version for the checked out tag or branch" | ||
run: | | ||
PROJECT_VERSION=$(grep '^projectVersion=' gradle.properties | cut -d'=' -f2) | ||
echo "PROJECT_VERSION=${PROJECT_VERSION}" >> $GITHUB_ENV | ||
echo "Project version: ${PROJECT_VERSION}" | ||
- name: "☕️ Setup JDK" | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: liberica | ||
java-version: '17' | ||
- name: Publish Documentation | ||
id: docs | ||
uses: gradle/gradle-build-action@v3 | ||
- name: "🐘 Setup Gradle" | ||
uses: gradle/actions/setup-gradle@v4 | ||
with: | ||
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | ||
- name: "📖 Generate documentation" | ||
env: | ||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} | ||
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
arguments: docs:docs | ||
- name: Determine docs target repository | ||
if: success() | ||
uses: haya14busa/action-cond@v1 | ||
id: docs_target | ||
with: | ||
cond: ${{ github.repository == 'grails/gorm-hibernate5' }} | ||
if_true: "grails/grails-data-mapping" | ||
if_false: ${{ github.repository }} | ||
- name: Publish to Github Pages | ||
if: success() | ||
uses: grails/github-pages-deploy-action@grails | ||
run: ./gradlew docs:docs | ||
- name: "👀 Determine docs target repository" | ||
run: | | ||
if [ "${{ github.repository }}" = "grails/gorm-hibernate5" ]; then | ||
DOCS_TARGET_REPOSITORY="grails/grails-data-mapping" | ||
else | ||
DOCS_TARGET_REPOSITORY="${{ github.repository }}" | ||
fi | ||
echo "DOCS_TARGET_REPOSITORY=${DOCS_TARGET_REPOSITORY}" >> $GITHUB_ENV | ||
echo "Target Repository: ${DOCS_TARGET_REPOSITORY}" | ||
- name: "📤 Publish documentation to Github Pages" | ||
uses: grails/github-pages-deploy-action@v3 | ||
env: | ||
SKIP_LATEST: ${{ contains(steps.release_version.outputs.release_version, 'M') }} | ||
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
BETA: ${{ contains(env.PROJECT_VERSION, 'M') || contains(env.PROJECT_VERSION, 'RC') }} | ||
BRANCH: gh-pages | ||
FOLDER: docs/build/docs | ||
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }} | ||
COMMIT_NAME: ${{ env.GIT_USER_NAME }} | ||
DOC_SUB_FOLDER: hibernate | ||
DOC_FOLDER: gh-pages | ||
COMMIT_EMAIL: '[email protected]' | ||
COMMIT_NAME: 'grails-build' | ||
VERSION: ${{ steps.release_version.outputs.release_version }} | ||
FOLDER: docs/build/docs | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
TARGET_REPOSITORY: ${{ env.DOCS_TARGET_REPOSITORY }} | ||
VERSION: ${{ env.PROJECT_VERSION }} |
This file contains hidden or 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Java CI | ||
name: "Java CI" | ||
on: | ||
push: | ||
branches: | ||
|
@@ -7,77 +7,77 @@ on: | |
branches: | ||
- '[7-9]+.[0-9]+.x' | ||
workflow_dispatch: | ||
env: | ||
GIT_USER_NAME: grails-build | ||
GIT_USER_EMAIL: [email protected] | ||
permissions: | ||
packages: read | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
env: | ||
WORKSPACE: ${{ github.workspace }} | ||
GRADLE_OPTS: -Xmx1500m -Dfile.encoding=UTF-8 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK | ||
- name: "📥 Checkout repository" | ||
uses: actions/checkout@v4 | ||
- name: "☕️ Setup JDK" | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: liberica | ||
java-version: '17' | ||
- name: Run Build | ||
- name: "🐘 Setup Gradle" | ||
uses: gradle/actions/setup-gradle@v4 | ||
with: | ||
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | ||
- name: "🔨 Run Build" | ||
id: build | ||
uses: gradle/gradle-build-action@v3 | ||
env: | ||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} | ||
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
matrei marked this conversation as resolved.
Show resolved
Hide resolved
|
||
arguments: build | ||
run: ./gradlew build --continue | ||
publish: | ||
if: github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
needs: ['build'] | ||
needs: 'build' | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK | ||
- name: "📥 Checkout repository" | ||
uses: actions/checkout@v4 | ||
- name: "☕️ Setup JDK" | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: liberica | ||
java-version: '17' | ||
- name: Publish Artifacts To Grails Artifactory (repo.grails.org) | ||
uses: gradle/gradle-build-action@v3 | ||
env: | ||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} | ||
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | ||
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | ||
- name: "🐘 Setup Gradle" | ||
uses: gradle/actions/setup-gradle@v4 | ||
with: | ||
arguments: -Dorg.gradle.internal.publish.checksums.insecure=true publish | ||
- name: Build Docs | ||
if: success() | ||
uses: gradle/gradle-build-action@v3 | ||
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | ||
- name: "📤 Publish Snapshot to repo.grails.org" | ||
env: | ||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} | ||
with: | ||
arguments: docs:docs | ||
- name: Determine docs target repository | ||
if: success() | ||
uses: haya14busa/action-cond@v1 | ||
id: docs_target | ||
with: | ||
cond: ${{ github.repository == 'grails/gorm-hibernate5' }} | ||
if_true: "grails/grails-data-mapping" | ||
if_false: ${{ github.repository }} | ||
- name: Publish to Github Pages | ||
if: success() | ||
uses: grails/github-pages-deploy-action@grails | ||
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | ||
GRADLE_PUBLISH_RELEASE: 'false' | ||
MAVEN_PUBLISH_USERNAME: ${{ secrets.MAVEN_PUBLISH_USERNAME }} | ||
MAVEN_PUBLISH_PASSWORD: ${{ secrets.MAVEN_PUBLISH_PASSWORD }} | ||
run: ./gradlew publish --no-build-cache | ||
- name: "🔨 Build Docs" | ||
env: | ||
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew docs:docs | ||
- name: "👀 Determine docs target repository" | ||
run: | | ||
if [ "${{ github.repository }}" = "grails/gorm-hibernate5" ]; then | ||
DOCS_TARGET_REPOSITORY="grails/grails-data-mapping" | ||
else | ||
DOCS_TARGET_REPOSITORY="${{ github.repository }}" | ||
fi | ||
echo "DOCS_TARGET_REPOSITORY=${DOCS_TARGET_REPOSITORY}" >> $GITHUB_ENV | ||
echo "Target Repository: ${DOCS_TARGET_REPOSITORY}" | ||
- name: "📤 Publish to Github Pages" | ||
uses: grails/github-pages-deploy-action@v3 | ||
env: | ||
SKIP_SNAPSHOT: ${{ contains(steps.release_version.outputs.release_version, 'M') }} | ||
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: docs/build/docs | ||
DOC_SUB_FOLDER: hibernate | ||
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }} | ||
COMMIT_NAME: ${{ env.GIT_USER_NAME }} | ||
DOC_FOLDER: gh-pages | ||
COMMIT_EMAIL: '[email protected]' | ||
COMMIT_NAME: 'grails-build' | ||
DOC_SUB_FOLDER: hibernate | ||
FOLDER: docs/build/docs | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
TARGET_REPOSITORY: ${{ env.DOCS_TARGET_REPOSITORY }} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.