Build fails with "Invalid version format: '20.10.8+dfsg1'. Should be major.minor.revision[-extra]"

Just cloned the repository from GH (commit e5251bc5a0d5382c64e3751953e4f38fb67633e1) and the build fails with the above mentioned error.

I am on Debian testing amd64.

The command and output is

$ ./gradlew assemble
=======================================
Elasticsearch Build Hamster says Hello!
  Gradle Version        : 7.2
  OS Info               : Linux 5.14.0-3-amd64 (amd64)
  JDK Version           : 17 (Debian)
  JAVA_HOME             : /usr/lib/jvm/java-17-openjdk-amd64
  Random Testing Seed   : 98D21BFAFF9F2E99
  In FIPS 140 mode      : false
=======================================

FAILURE: Build failed with an exception.

* What went wrong:
Invalid version format: '20.10.8+dfsg1'. Should be major.minor.revision[-extra]

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 52s
19 actionable tasks: 19 up-to-date

The version number complaint refers to the docker package:

$ dpkg -l |grep '20.10.8'
ii  docker.io                                     20.10.8+dfsg1-1                     amd64        Linux container runtime

What do you suggest to get Elasticsearch building ?

Just FYI, it has been fixed yesterday: Support additional version schemes in relaxed mode by mark-vieira · Pull Request #81010 · elastic/elasticsearch · GitHub