How to share versions information in multiple independent projects

Hi,
What is the best way to share the version information in projects which are not dependent on each other?
As a concrete example.
The Hortonworks Hadoop platform version is 3.1.5 in which all applications run.

App1
Needs Hive and Hadoop dependencies

App2
Needs only Hive dependency

Currently, we declare all dependency versions in both projects separately. It makes difficult to update all of them when there is an upgrade. What is the best way to centralize the dependency versions in the Gradle world?

In sbt we have the concept of plugins where we declare all and applications apply the plugin.
I read about concept of platforms in Gradle, it looks similar. But How to create own platforms? and does it provides flexibility to apps to use only part of the platform?

Hi @wqpUuqZPxgOn,

The current recommendation is to define the versions as dependency constraints in a separate java-platform project:

https://docs.gradle.org/current/userguide/java_platform_plugin.html#sec:java_platform_usage