diff --git a/build.gradle b/build.gradle index e91af3c..59808a9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,16 +1,10 @@ plugins { id 'ca.architecture' - // Without it every gRPC leaf's jar is versioned 0.0.1-SNAPSHOT, because JavaConventionsPlugin - // falls back to that when the root has no ReleaseProvenanceExtension — so one commit produced - // two artifact sets under two different version schemes, and only one of them could be traced - // back to a revision. - id 'ca.release-provenance' } -ext.sourceRevision = providers.gradleProperty('gitRevision') - .orElse(providers.environmentVariable('GIT_SHA')) - .orElse(providers.environmentVariable('GITHUB_SHA')) - .getOrElse('unknown') +// No `ca.release-provenance` any more: each gRPC leaf's `ca.java-conventions` derives its version +// and `sourceRevision` from the same -PreleaseVersion/-PgitRevision (GIT_SHA, GITHUB_SHA) inputs the +// main build reads, so one commit produces one version scheme in both builds (review BUILD-O3-5). tasks.register('resolveAndLockAll') { group = 'build setup'