About --distribution-type all for Gradle.
--- a/gradle.rst Sun Dec 25 20:27:45 2022 +0200
+++ b/gradle.rst Sun Dec 25 20:33:39 2022 +0200
@@ -471,6 +471,11 @@
To increase security add ``distributionSha256Sum`` parameter to ``gradle-wrapper.properties`` file.
Distribution SHA-256 sum can be obtained via ``shasum`` utility.
+To depend on a distribution with bundled docs & sources use ``--distribution-type all`` (``bin`` is
+by default)::
+
+ ./gradlew wrapper --gradle-version 7.6 --distribution-type all
+
https://docs.gradle.org/current/userguide/gradle_wrapper.html
Official docs.