If you really want to work with the source code, I'd recommend using the released source code: https://beam.apache.org/get-started/downloads/#releases
Even there the version in gradle.properties says x.y.z-SNAPSHOT. You may want to remove the -SNAPSHOT suffix. I understand that this is confusing but that's how our release tooling currently works; it removes the snapshot suffix during publishing the artifacts. I think you bring up a good point, for the sake of release build reproducibility, we may want to remove the snapshot suffix for the source release. Best, Max On 26.05.20 17:20, Kyle Weaver wrote: >> When we release the version, the RC suffix is dropped. > > I think this might not actually be true, at least for the git tag, since > we just copy the tag from the accepted RC without changing anything. > However, it might not matter because RC2 artifacts should be identical > to the final release artifacts. > >> In other words, how to check out the sources of Beam 2.20.0 and build > them to get the released artifacts? > > As Max said, we build and publish artifacts (Jars, Docker containers, > Python wheels, etc.) for each release, so it usually isn't necessary to > build them oneself unless you are testing on head or other unreleased code. > > On Tue, May 26, 2020 at 6:02 AM Jacek Laskowski <ja...@japila.pl > <mailto:ja...@japila.pl>> wrote: > > Hi Max, > > > You probably want to work with the release artifacts, instead of > cloning > > the development branch. > > I'm not sure I understand. > > I did the following to work with the sources of v2.20.0. Am > I missing something? > > git fetch --all --tags --prune > git checkout -b v2.20.0 v2.20.0 > > The last commit on the branch > is 9f0cb649d39ee6236ea27f111acb4b66591a80ec that matches the repo. > > > https://github.com/apache/beam/commit/9f0cb649d39ee6236ea27f111acb4b66591a80ec > > commit 9f0cb649d39ee6236ea27f111acb4b66591a80ec (HEAD -> v2.20.0, > tag: v2.20.0-RC2, tag: v2.20.0) > Author: amaliujia <ruw...@google.com <mailto:ruw...@google.com>> > Date: Wed Apr 8 14:38:47 2020 -0700 > > [Gradle Release Plugin] - pre tag commit: 'v2.20.0-RC2'. > > gradle.properties | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > That commit introduced the RC2: > > -version=2.20.0-SNAPSHOT > +version=2.20.0-RC2 > > Why is there no 2.20.0 only commit? One that would be like this for > Spark 2.4.5 [1] or Kafka 2.5.0 [2]? > > [1] > https://github.com/apache/spark/commit/cee4ecbb16917fa85f02c635925e2687400aa56b > [2] > https://github.com/apache/kafka/commit/66563e712b0b9f84f673b262f2fb87c03110084d > > In other words, how to check out the sources of Beam 2.20.0 and > build them to get the released artifacts? > > Pozdrawiam, > Jacek Laskowski > ---- > https://about.me/JacekLaskowski > "The Internals Of" Online Books <https://books.japila.pl/> > Follow me on https://twitter.com/jaceklaskowski > > <https://twitter.com/jaceklaskowski> > > > On Mon, May 25, 2020 at 12:00 PM Maximilian Michels <m...@apache.org > <mailto:m...@apache.org>> wrote: > > Hi Jacek, > > The Gradle property is the source of truth for the Beam version. > When we > release the version, the RC suffix is dropped. > > The use of snapshot versions is normal during the development > process. > You probably want to work with the release artifacts, instead of > cloning > the development branch. > > -Max > > On 24.05.20 12:45, Jacek Laskowski wrote: > > Hi, > > > > I git cloned https://github.com/apache/beam/tree/v2.20.0 and > > found version=2.20.0-RC2 in gradle.properties. What's the > purpose of the > > version property? > > > > (The main reason I'm asking is that I try to find out why > gradle / IDEA > > attaches 2.20.0-SNAPSHOT dependencies to projects. How is that > possible > > that any of the two would ever consider SNAPSHOT as a dependency?) > > > > Pozdrawiam, > > Jacek Laskowski > > ---- > > https://about.me/JacekLaskowski > > "The Internals Of" Online Books <https://books.japila.pl/> > > Follow me on https://twitter.com/jaceklaskowski > > > > <https://twitter.com/jaceklaskowski> >