Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 6e198dc

Browse files
authored
Merge pull request #174 from jdaugherty/6.0.x
Pre release workflow & since async must release before gorm do not ex…
2 parents a561078 + 24370bd commit 6e198dc

File tree

7 files changed

+29
-10
lines changed

7 files changed

+29
-10
lines changed

.github/workflows/gradle.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ jobs:
1717
- uses: gradle/wrapper-validation-action@v2
1818
- uses: actions/setup-java@v4
1919
with:
20-
distribution: temurin
20+
distribution: liberica
2121
java-version: 17
2222
- name: Run Gradle build
2323
uses: gradle/actions/setup-gradle@v3
2424
env:
2525
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
26+
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
2627
with:
2728
arguments: build
2829
publish_documentation:
@@ -35,7 +36,7 @@ jobs:
3536
- uses: gradle/wrapper-validation-action@v2
3637
- uses: actions/setup-java@v4
3738
with:
38-
distribution: temurin
39+
distribution: liberica
3940
java-version: 17
4041
- name: Publish to Artifactory (repo.grails.org)
4142
uses: gradle/actions/setup-gradle@v3
@@ -56,7 +57,7 @@ jobs:
5657
arguments: docs
5758
- name: Publish to Github Pages
5859
if: success()
59-
uses: micronaut-projects/github-pages-deploy-action@grails
60+
uses: grails/github-pages-deploy-action@grails
6061
env:
6162
TARGET_REPOSITORY: ${{ github.repository }}
6263
GH_TOKEN: ${{ secrets.GH_TOKEN }}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
100100
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
101101
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
102+
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
102103
with:
103104
build-root-directory: ../groovy
104105
arguments: |
@@ -142,6 +143,7 @@ jobs:
142143
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
143144
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
144145
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
146+
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
145147
with:
146148
arguments: |
147149
build

.github/workflows/release-notes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
# Otherwise:
3535
- name: Export Gradle Properties
3636
if: steps.check_release_drafter.outputs.has_release_drafter == 'false'
37-
uses: micronaut-projects/github-actions/export-gradle-properties@master
38-
- uses: micronaut-projects/github-actions/release-notes@master
37+
uses: grails/github-actions/export-gradle-properties@main
38+
- uses: grails/github-actions/release-notes@main
3939
if: steps.check_release_drafter.outputs.has_release_drafter == 'false'
4040
id: release_notes
4141
with:

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: echo "release_version=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
2222

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

2626
- name: Generate secring file
2727
env:
@@ -38,6 +38,7 @@ jobs:
3838
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
3939
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
4040
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
41+
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
4142
with:
4243
arguments: |
4344
-Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg
@@ -54,7 +55,7 @@ jobs:
5455

5556
- name: Publish Documentation to Github Pages
5657
if: success()
57-
uses: micronaut-projects/github-pages-deploy-action@grails
58+
uses: grails/github-pages-deploy-action@grails
5859
env:
5960
TARGET_REPOSITORY: ${{ github.repository }}
6061
GH_TOKEN: ${{ secrets.GH_TOKEN }}
@@ -67,4 +68,4 @@ jobs:
6768

6869
- name: Run post-release
6970
if: steps.publish_to_sonatype.outcome == 'success'
70-
uses: micronaut-projects/github-actions/post-release@master
71+
uses: grails/github-actions/post-release@main

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ subprojects {
4141
url = 'https://groovy.jfrog.io/artifactory/libs-snapshot-local/'
4242
}
4343
}
44+
if (System.getenv("GITHUB_MAVEN_PASSWORD") && !grailsVersion.endsWith('-SNAPSHOT')) {
45+
System.out.println("Adding Grails Core Repo")
46+
maven {
47+
url = 'https://maven.pkg.github.com/grails/grails-core'
48+
credentials {
49+
username = 'DOES_NOT_MATTER'
50+
password = System.getenv("GITHUB_MAVEN_PASSWORD")
51+
}
52+
}
53+
}
4454
}
4555

4656
dependencies {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
gpars = '1.2.1'
3-
grails = '7.0.0-SNAPSHOT'
3+
grails = '7.0.0-M1'
44
groovy = '4.0.24'
55
gorm = '9.0.0-SNAPSHOT'
66
micronaut-http-client = '4.6.5'

grails-events-transform/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies {
1212
api libs.grails.datastore.core
1313
api libs.spring.context
1414

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

26+
testImplementation libs.grails.datastore.gorm, {
27+
// TODO: Explain why this exclusion is done
28+
exclude group: 'org.grails', module: 'grails-datastore-gorm-validation'
29+
}
30+
2631
testImplementation libs.grails.datastore.gorm.test, {
2732
// TODO: Explain why this exclusion is done (I don't know)
2833
exclude group: 'org.grails', module: 'grails-datastore-gorm-validation'

0 commit comments

Comments
 (0)