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

Commit 0e53db4

Browse files
committed
Improve Gradle task fetchSource
to fetch the GORM source in order to build documentation.
1 parent a739c56 commit 0e53db4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
token: ${{ secrets.GITHUB_TOKEN }}
3232
- name: Publish to Sonatyoe OSSRH
3333
env:
34-
TAGGED_VERSION: ${{ steps.release_version.outputs.release_version }}
3534
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
3635
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
3736
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}

docs/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ task fetchSource {
8787
ant.mkdir dir: checkOutDir
8888

8989
println "Downloading GORM source code."
90-
def tag = System.getenv('TAGGED_VERSION')
91-
if (tag) {
92-
ant.get src: "https://github.com/grails/grails-data-mapping/archive/${tag}.zip", dest: zipFile, verbose: true
90+
if (isReleaseVersion) {
91+
ant.get src: "https://github.com/grails/grails-data-mapping/archive/v${datastoreVersion}.zip", dest: zipFile, verbose: true
9392
} else {
9493
ant.get src: "https://github.com/grails/grails-data-mapping/zipball/${githubBranch}", dest: zipFile, verbose: true
9594
}

0 commit comments

Comments
 (0)