Skip to content

Commit

Permalink
Merge pull request #174 from jdaugherty/6.0.x
Browse files Browse the repository at this point in the history
Pre release workflow & since async must release before gorm do not ex…
  • Loading branch information
jdaugherty authored Dec 20, 2024
2 parents a561078 + 24370bd commit 6e198dc
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ jobs:
- uses: gradle/wrapper-validation-action@v2
- uses: actions/setup-java@v4
with:
distribution: temurin
distribution: liberica
java-version: 17
- name: Run Gradle build
uses: gradle/actions/setup-gradle@v3
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
with:
arguments: build
publish_documentation:
Expand All @@ -35,7 +36,7 @@ jobs:
- uses: gradle/wrapper-validation-action@v2
- uses: actions/setup-java@v4
with:
distribution: temurin
distribution: liberica
java-version: 17
- name: Publish to Artifactory (repo.grails.org)
uses: gradle/actions/setup-gradle@v3
Expand All @@ -56,7 +57,7 @@ jobs:
arguments: docs
- name: Publish to Github Pages
if: success()
uses: micronaut-projects/github-pages-deploy-action@grails
uses: grails/github-pages-deploy-action@grails
env:
TARGET_REPOSITORY: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/groovy-joint-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
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:
build-root-directory: ../groovy
arguments: |
Expand Down Expand Up @@ -142,6 +143,7 @@ jobs:
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: |
build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
# Otherwise:
- name: Export Gradle Properties
if: steps.check_release_drafter.outputs.has_release_drafter == 'false'
uses: micronaut-projects/github-actions/export-gradle-properties@master
- uses: micronaut-projects/github-actions/release-notes@master
uses: grails/github-actions/export-gradle-properties@main
- uses: grails/github-actions/release-notes@main
if: steps.check_release_drafter.outputs.has_release_drafter == 'false'
id: release_notes
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: echo "release_version=${GITHUB_REF:11}" >> $GITHUB_OUTPUT

- name: Run pre-release
uses: micronaut-projects/github-actions/pre-release@master
uses: grails/github-actions/pre-release@main

- name: Generate secring file
env:
Expand All @@ -38,6 +38,7 @@ jobs:
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
with:
arguments: |
-Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg
Expand All @@ -54,7 +55,7 @@ jobs:

- name: Publish Documentation to Github Pages
if: success()
uses: micronaut-projects/github-pages-deploy-action@grails
uses: grails/github-pages-deploy-action@grails
env:
TARGET_REPOSITORY: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand All @@ -67,4 +68,4 @@ jobs:

- name: Run post-release
if: steps.publish_to_sonatype.outcome == 'success'
uses: micronaut-projects/github-actions/post-release@master
uses: grails/github-actions/post-release@main
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ subprojects {
url = 'https://groovy.jfrog.io/artifactory/libs-snapshot-local/'
}
}
if (System.getenv("GITHUB_MAVEN_PASSWORD") && !grailsVersion.endsWith('-SNAPSHOT')) {
System.out.println("Adding Grails Core Repo")
maven {
url = 'https://maven.pkg.github.com/grails/grails-core'
credentials {
username = 'DOES_NOT_MATTER'
password = System.getenv("GITHUB_MAVEN_PASSWORD")
}
}
}
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
gpars = '1.2.1'
grails = '7.0.0-SNAPSHOT'
grails = '7.0.0-M1'
groovy = '4.0.24'
gorm = '9.0.0-SNAPSHOT'
micronaut-http-client = '4.6.5'
Expand Down
7 changes: 6 additions & 1 deletion grails-events-transform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies {
api libs.grails.datastore.core
api libs.spring.context

implementation libs.grails.datastore.gorm, {
compileOnly libs.grails.datastore.gorm, {
// TODO: Explain why this exclusion is done
exclude group: 'org.grails', module: 'grails-datastore-gorm-validation'
}
Expand All @@ -23,6 +23,11 @@ dependencies {
implementation libs.spring.tx
implementation libs.jakarta.annotation.api

testImplementation libs.grails.datastore.gorm, {
// TODO: Explain why this exclusion is done
exclude group: 'org.grails', module: 'grails-datastore-gorm-validation'
}

testImplementation libs.grails.datastore.gorm.test, {
// TODO: Explain why this exclusion is done (I don't know)
exclude group: 'org.grails', module: 'grails-datastore-gorm-validation'
Expand Down

0 comments on commit 6e198dc

Please sign in to comment.