Skip to content

Commit

Permalink
Merge pull request #940 from jdaugherty/9.0.x
Browse files Browse the repository at this point in the history
Pre-release for M1
  • Loading branch information
jdaugherty authored Dec 21, 2024
2 parents 44a11d5 + 69b15bf commit 4b0b09a
Show file tree
Hide file tree
Showing 16 changed files with 50 additions and 21 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
distribution: liberica
java-version: '17'
- name: Publish Documentation
id: docs
Expand All @@ -29,6 +29,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: docs:docs
- name: Determine docs target repository
Expand All @@ -41,7 +42,7 @@ jobs:
if_false: ${{ github.repository }}
- name: Publish to Github Pages
if: success()
uses: micronaut-projects/github-pages-deploy-action@grails
uses: grails/github-pages-deploy-action@grails
env:
SKIP_LATEST: ${{ contains(steps.release_version.outputs.release_version, 'M') }}
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
distribution: liberica
java-version: '17'
- name: Run Build
id: build
Expand All @@ -27,6 +27,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
publish:
Expand All @@ -38,7 +39,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
distribution: liberica
java-version: '17'
- name: Publish Artifacts To Grails Artifactory (repo.grails.org)
uses: gradle/gradle-build-action@v3
Expand Down Expand Up @@ -69,7 +70,7 @@ jobs:
if_false: ${{ github.repository }}
- name: Publish to Github Pages
if: success()
uses: micronaut-projects/github-pages-deploy-action@grails
uses: grails/github-pages-deploy-action@grails
env:
SKIP_SNAPSHOT: ${{ contains(steps.release_version.outputs.release_version, 'M') }}
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/groovy-joint-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
distribution: liberica
java-version: 17
- name: Cache local Maven repository & Groovy
uses: actions/cache@v4
Expand Down Expand Up @@ -115,6 +115,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 All @@ -135,7 +136,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
distribution: liberica
java-version: 17
- name: Cache local Maven repository & Groovy
uses: actions/cache@v4
Expand All @@ -154,6 +155,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 @@ -31,8 +31,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
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
distribution: liberica
java-version: '17'
- name: Set the current release version
id: release_version
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
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate secring file
Expand All @@ -43,6 +43,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: -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg publishToSonatype closeAndReleaseSonatypeStagingRepository
- name: Publish Documentation
Expand All @@ -53,10 +54,11 @@ 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: docs:docs
- name: Export Gradle Properties
uses: micronaut-projects/github-actions/export-gradle-properties@master
uses: grails/github-actions/export-gradle-properties@main
- name: Determine docs target repository
if: success()
uses: haya14busa/action-cond@v1
Expand All @@ -67,7 +69,7 @@ jobs:
if_false: ${{ github.repository }}
- name: Publish to Github Pages
if: success()
uses: micronaut-projects/github-pages-deploy-action@grails
uses: grails/github-pages-deploy-action@grails
env:
SKIP_LATEST: ${{ contains(steps.release_version.outputs.release_version, 'M') }}
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
Expand All @@ -81,7 +83,7 @@ jobs:
VERSION: ${{ steps.release_version.outputs.release_version }}
- name: Run post-release
if: success()
uses: micronaut-projects/github-actions/post-release@master
uses: grails/github-actions/post-release@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
env:
Expand Down
16 changes: 15 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ allprojects {
url = 'https://repository.apache.org/content/repositories/snapshots'
}
}
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")
}
}
}
}
}

Expand All @@ -92,7 +102,11 @@ subprojects { Project subproject ->
}

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")

// Global dependencies for every app should be added here with great caution.
// Gorm is used by other frameworks (ie springboot, micronaut, etc) and we
// don't want to add dependencies that would make it harder to use in those frameworks.

testImplementation "jakarta.annotation:jakarta.annotation-api"
testImplementation "io.micrometer:micrometer-core:latest.integration"
testImplementation "io.projectreactor:reactor-test"
Expand Down
2 changes: 1 addition & 1 deletion examples/grails-data-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ plugins {
id 'org.grails.plugins.views-json'
}


version = rootProject.version
group = 'examples'

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")

implementation project(':grails-plugin')
implementation 'org.grails:grails-core'
Expand Down
1 change: 1 addition & 0 deletions examples/grails-database-per-tenant/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ version = rootProject.version
group = 'examples'

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")

implementation project(':grails-plugin')
implementation 'org.grails:grails-core'
Expand Down
1 change: 1 addition & 0 deletions examples/grails-hibernate-groovy-proxy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ version = rootProject.version
group = 'examples'

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")

implementation project(':grails-plugin')
implementation 'org.grails:grails-core'
Expand Down
1 change: 1 addition & 0 deletions examples/grails-hibernate/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ version = rootProject.version
group = 'examples'

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")

implementation project(':grails-plugin')
implementation 'jakarta.persistence:jakarta.persistence-api'
Expand Down
1 change: 1 addition & 0 deletions examples/grails-multiple-datasources/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ configurations {
}

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")

astTransformation 'jakarta.servlet:jakarta.servlet-api'
astTransformation 'org.grails:grails-plugin-controllers'
Expand Down
1 change: 1 addition & 0 deletions examples/grails-partitioned-multi-tenancy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ version = rootProject.version
group = 'examples'

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")

implementation project(':grails-plugin')
implementation 'org.grails:grails-core'
Expand Down
1 change: 1 addition & 0 deletions examples/grails-schema-per-tenant/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ version = rootProject.version
group = 'examples'

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")

implementation project(':grails-plugin')
implementation 'org.grails:grails-core'
Expand Down
1 change: 1 addition & 0 deletions examples/issue450/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ version = rootProject.version
group = 'multitenantcomposite'

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")

implementation project(':grails-plugin')
implementation 'org.grails:grails-core'
Expand Down
2 changes: 2 additions & 0 deletions examples/spring-boot-hibernate/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ group = 'examples'

dependencies {

implementation platform("org.grails:grails-bom:$grailsVersion")

implementation project(':gorm-hibernate5-spring-boot')
implementation 'org.springframework.boot:spring-boot-starter-web'

Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
projectVersion=9.0.0-SNAPSHOT
asciidoctorGradleVersion=4.0.1
gormVersion=9.0.0-SNAPSHOT
gormVersion=9.0.0-M2
gradleNexusPublishPluginVersion=2.0.0
grailsGradlePluginVersion=7.0.0-SNAPSHOT
grailsVersion=7.0.0-SNAPSHOT
groovydocGradlePluginVersion=1.0.1
grailsGradlePluginVersion=7.0.0-M2
grailsVersion=7.0.0-M1
groovyVersion=4.0.24
hibernateVersion=5.6.15.Final
hibernateValidatorVersion=8.0.1.Final
yakworksHibernateGroovyProxyVersion=1.1
micronautPlatformVersion=4.6.3
picocliVersion=4.7.6
springBootGradlePluginVersion=3.4.1
viewsGradleVersion=4.0.0-SNAPSHOT
viewsGradleVersion=4.0.0-M1

org.gradle.caching=true
org.gradle.parallel=false
Expand Down

0 comments on commit 4b0b09a

Please sign in to comment.