Skip to content

Commit 36f1755

Browse files
committed
Explicitly publish release and version info
Rather than bundle the release and version info file updates with the publish lifecycle task, require that they be run explicitly to update (as part of the release process, for example)
1 parent 2e0a555 commit 36f1755

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

gradle/root/publishing.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ def publishReleaseInfoTask = tasks.register('publishReleaseInfo', PublishToRawRe
127127
}
128128
}
129129

130-
publish.dependsOn publishReleaseInfoTask
131-
132130
def publishVersionInfoTask = tasks.register('publishVersionInfo', PublishToRawRepoTask) {
133131
group = 'publishing'
134132
description = 'Publish version-info.json to Nexus docs.'
@@ -146,8 +144,6 @@ def publishVersionInfoTask = tasks.register('publishVersionInfo', PublishToRawRe
146144
}
147145
}
148146

149-
publish.dependsOn publishVersionInfoTask
150-
151147
// The "publish" tasks for all subprojects require credentials for our Nexus server, which they look for in Gradle
152148
// properties. If those properties (i.e. NEXUS_USERNAME_KEY and NEXUS_PASSWORD_KEY) haven't been provided, the build
153149
// will fail. Therefore, we only want to configure credentials when a "publish" task is part of the execution plan.

0 commit comments

Comments
 (0)