Skip to content

Commit

Permalink
Merge pull request #602 from jdaugherty/4.0.x
Browse files Browse the repository at this point in the history
Pre Release
  • Loading branch information
jdaugherty authored Dec 21, 2024
2 parents 29e4a1a + d161eb7 commit b8a9c13
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 20 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
distribution: liberica
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
Expand All @@ -29,6 +29,7 @@ jobs:
env:
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: >
./gradlew
check
Expand All @@ -42,7 +43,7 @@ jobs:
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
distribution: liberica
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
Expand All @@ -51,6 +52,7 @@ jobs:
env:
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: >
./gradlew
build
Expand All @@ -61,6 +63,7 @@ jobs:
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
ORG_GRADLE_PROJECT_artifactoryUsername: ${{ secrets.ARTIFACTORY_USERNAME }}
ORG_GRADLE_PROJECT_artifactoryPassword: ${{ secrets.ARTIFACTORY_PASSWORD }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: >
./gradlew
-Dorg.gradle.internal.publish.checksums.insecure=true
Expand All @@ -70,12 +73,13 @@ jobs:
env:
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: >
./gradlew
views-docs:docs
- name: "📤 Publish Snapshot Documentation to Github Pages"
if: success()
uses: micronaut-projects/github-pages-deploy-action@grails
uses: grails/github-pages-deploy-action@grails
env:
BRANCH: gh-pages
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }}
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 @@ -18,7 +18,7 @@ jobs:
- name: "☕️ Setup JDK"
uses: actions/setup-java@v4
with:
distribution: temurin
distribution: liberica
java-version: 17
- name: "🗄️ Cache local Maven repository"
uses: actions/cache@v4
Expand Down Expand Up @@ -108,6 +108,7 @@ jobs:
env:
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: |
cd groovy
./gradlew pTML -x groovydoc -x javadoc -x javadocAll -x groovydocAll -x asciidoc -x docGDK
Expand All @@ -122,7 +123,7 @@ jobs:
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
distribution: liberica
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
Expand All @@ -138,6 +139,7 @@ jobs:
env:
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: >
./gradlew
build
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
distribution: liberica
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
Expand All @@ -26,13 +26,14 @@ jobs:
id: release_version
run: echo "value=${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: "🧩 Run Assemble"
if: success()
id: assemble
env:
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew assemble
- name: "📤 Upload Distribution"
if: success()
Expand All @@ -54,6 +55,7 @@ jobs:
ORG_GRADLE_PROJECT_sonatypeOssRepo: ${{ secrets.SONATYPE_NEXUS_URL }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: >
./gradlew
-Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg
Expand All @@ -74,7 +76,7 @@ jobs:
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
distribution: liberica
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
Expand All @@ -87,13 +89,14 @@ jobs:
ORG_GRADLE_PROJECT_sonatypeOssPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeOssStagingProfileId: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
ORG_GRADLE_PROJECT_sonatypeOssRepo: ${{ secrets.SONATYPE_NEXUS_URL }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: >
./gradlew
findSonatypeStagingRepository
releaseSonatypeStagingRepository
- 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 }}
docs:
Expand All @@ -111,7 +114,7 @@ jobs:
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
distribution: liberica
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
Expand All @@ -121,12 +124,13 @@ jobs:
env:
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: >
./gradlew
views-docs:docs
- name: "📤 Publish Documentation to Github Pages"
if: success()
uses: micronaut-projects/github-pages-deploy-action@grails
uses: grails/github-pages-deploy-action@grails
env:
BETA: ${{ contains(needs.publish.outputs.release_version, 'M') }}
BRANCH: gh-pages
Expand Down
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ allprojects {
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")
}
}
}
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
Expand Down
18 changes: 18 additions & 0 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ plugins {
repositories {
mavenCentral()
maven { url = 'https://repo.grails.org/grails/core' }

def gradleGrailsVersion = project.rootProject
.extensions
.getByType(VersionCatalogsExtension.class)
.named("buildsrcLibs")
.findVersion("grails-gradle-plugin")
.get()
.displayName
if (System.getenv("GITHUB_MAVEN_PASSWORD") && !gradleGrailsVersion.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
1 change: 1 addition & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ext.set('projectDesc', 'Grails Views Core')

dependencies {

api platform(libs.grails.bom)
api libs.caffeine // Used in public API
api libs.grails.datastore.core // MappingContext is used in public API
api libs.grails.mimetypes // MimeUtility is used in public API
Expand Down
1 change: 1 addition & 0 deletions gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies {

// the gradle api is provided by java-gradle-plugin

implementation platform(libs.grails.bom)
implementation libs.grails.bootstrap, {
// grails-bootstrap leaks groovy-xml which is a problem for Gradle (version conflict)
exclude group: 'org.codehaus.groovy', module: 'groovy-xml'
Expand Down
2 changes: 1 addition & 1 deletion gradle/buildsrc.libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
asciidoctor-gradle-jvm = '4.0.3'
grails-gradle-plugin = '7.0.0-SNAPSHOT'
grails-gradle-plugin = '7.0.0-M2'
grails-views = '4.0.0-SNAPSHOT'
groovy-doc = '1.0.1'
nexus-publish-gradle-plugin = '1.3.0'
Expand Down
16 changes: 8 additions & 8 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
grails = '7.0.0-SNAPSHOT'
grails-gradle-plugin = '7.0.0-SNAPSHOT'
grails = '7.0.0-M1'
grails-gradle-plugin = '7.0.0-M2'
groovy = '4.0.24'
java-baseline = '17'
micronaut = '4.6.5'
Expand All @@ -10,19 +10,19 @@ spring-boot-gradle-plugin = '3.4.1'
assetpipeline = { module = 'com.bertramlabs.plugins:asset-pipeline-grails' }
caffeine = { module = 'com.github.ben-manes.caffeine:caffeine' }
grails-bom = { module = 'org.grails:grails-bom', version.ref = 'grails' }
grails-bootstrap = { module = 'org.grails:grails-bootstrap', version.ref = 'grails' }
grails-core = { module = 'org.grails:grails-core', version.ref = 'grails' }
grails-bootstrap = { module = 'org.grails:grails-bootstrap' }
grails-core = { module = 'org.grails:grails-core' }
grails-datastore-core = { module = 'org.grails:grails-datastore-core' }
grails-datastore-gorm-hibernate5 = { module = 'org.grails:grails-datastore-gorm-hibernate5' }
grails-datastore-gorm-mongodb = { module = 'org.grails:grails-datastore-gorm-mongodb' }
grails-datastore-gorm-support = { module = 'org.grails:grails-datastore-gorm-support' }
grails-encoder = { module = 'org.grails:grails-encoder', version.ref = 'grails' }
grails-encoder = { module = 'org.grails:grails-encoder' }
grails-gradle-plugin = { module = 'org.grails:grails-gradle-plugin', version.ref = 'grails-gradle-plugin' }
grails-mimetypes = { module = 'org.grails:grails-plugin-mimetypes', version.ref = 'grails' }
grails-rest = { module = 'org.grails:grails-plugin-rest', version.ref = 'grails' }
grails-mimetypes = { module = 'org.grails:grails-plugin-mimetypes' }
grails-rest = { module = 'org.grails:grails-plugin-rest' }
grails-testing-support-core = { module = 'org.grails:grails-testing-support' }
grails-testing-support-gorm = { module = 'org.grails:grails-gorm-testing-support' }
grails-web-urlmappings = { module = 'org.grails:grails-web-url-mappings', version.ref = 'grails' }
grails-web-urlmappings = { module = 'org.grails:grails-web-url-mappings' }
groovy-core = { module = 'org.apache.groovy:groovy' }
groovy-json = { module = 'org.apache.groovy:groovy-json' }
groovy-templates = { module = 'org.apache.groovy:groovy-templates' }
Expand Down

0 comments on commit b8a9c13

Please sign in to comment.