Skip to content

Commit bcca01f

Browse files
authored
Update env var to GRAILS_PUBLISH_RELEASE (#14126)
* build: set correct env var `GRAILS_PUBLISH_RELEASE` * chore: cleanup
1 parent bb5e770 commit bcca01f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/gradle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
- name: "📤 Publish Snapshot Artifacts"
101101
id: publish
102102
env:
103-
GRADLE_PUBLISH_RELEASE: 'false'
103+
GRAILS_PUBLISH_RELEASE: 'false'
104104
MAVEN_PUBLISH_URL: ${{ secrets.GRAILS_NEXUS_PUBLISH_SNAPSHOT_URL }}
105105
MAVEN_PUBLISH_USERNAME: ${{ secrets.NEXUS_USER }}
106106
MAVEN_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PW }}

gradle/publish-config.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ extensions.configure(GrailsPublishExtension) {
88
it.title = findProperty('pomTitle') ?: 'Grails® framework'
99
it.desc = findProperty('pomDescription') ?: 'Grails Web Application Framework'
1010
it.developers = findProperty('pomDevelopers') as Map<String,String> ?: [graemerocher: 'Graeme Rocher']
11-
it.pomCustomization = findProperty('pomCustomization') as Closure ?: null
11+
it.pomCustomization = findProperty('pomCustomization') as Closure
1212
}

grails-bom/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def versions = new Properties()
1616
versions.load(new StringReader(new File("$projectDir.parentFile/gradle.properties").text))
1717

1818
ext {
19-
isReleaseBuild = System.getenv('GRADLE_PUBLISH_RELEASE') == 'true'
20-
isPublishedExternal = System.getenv('NEXUS_PUBLISH_STAGING_PROFILE_ID') != null
19+
isReleaseBuild = System.getenv('GRAILS_PUBLISH_RELEASE') == 'true'
20+
isPublishedExternal = System.getenv().containsKey('NEXUS_PUBLISH_STAGING_PROFILE_ID')
2121

2222
// When making changes in the dependencyVersions, remember to also update the Grails BOM Documentation:
2323
// https://docs.grails.org/snapshot/ref/Dependency%20Versions/Grails%20BOM.html

0 commit comments

Comments
 (0)