Skip to content

Commit 2afd2dd

Browse files
authored
Merge pull request #10309 from jdiehl/patch-592112
Enhance managed dependencies section with synchronization details
2 parents 3f55e3d + 10a0177 commit 2afd2dd

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

content/en/docs/refguide/java-programming/managed-dependencies/_index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,13 @@ Exclusions are identified through their [Maven naming convention](https://maven.
5454

5555
## Dependency Synchronization {#dependency-synchronization}
5656

57-
When a change is made to a specified dependency, for example, the dependency is removed or the module is updated from the Marketplace, dependency synchronization will automatically run in the background.
57+
When a change is made to a specified dependency, for example, the dependency is removed or the module is updated from the Marketplace, dependency synchronization will automatically run in the background. Dependency synchronization will also run every time you open your app in Studio Pro.
5858

59-
Dependency synchronization also occurs when you open your app in Studio Pro.
59+
{{% alert color="info" %}}
60+
Each time dependency synchronization is run, Studio Pro retrieves the latest compatible versions of all managed dependencies. If a package receives frequent patches, this can result in regular updates if no exact version is specified. Since each update must be committed to version control, this may lead to a high volume of commits over time.
61+
62+
To reduce the frequency of updates and associated version control commits, you can configure your managed dependencies to use exact version numbers. This prevents automatic updates during dependency synchronization and helps maintain a more stable and predictable build environment. You can read about gradle's version ranges on [gradle.org](https://docs.gradle.org/current/userguide/dependency_versions.html)
63+
{{% /alert %}}
6064

6165
You can trigger a manual synchronization in the menu **App** > **Synchronize dependencies**. You may want to do this, for example, when synchronization failed due to connectivity issues.
6266

content/en/docs/refguide10/java-programming/managed-dependencies.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,13 @@ Exclusions are identified through their [Maven naming convention](https://maven.
6464

6565
## Dependency Synchronization {#dependency-synchronization}
6666

67-
When a change is made to a specified dependency, for example, the dependency is removed or the module is updated from the Marketplace, dependency synchronization will automatically run in the background.
67+
When a change is made to a specified dependency, for example, the dependency is removed or the module is updated from the Marketplace, dependency synchronization will automatically run in the background. Dependency synchronization will also run every time you open your app in Studio Pro.
6868

69-
Dependency synchronization also occurs when you open your app in Studio Pro.
69+
{{% alert color="info" %}}
70+
Each time dependency synchronization is run, Studio Pro retrieves the latest compatible versions of all managed dependencies. If a package receives frequent patches, this can result in regular updates if no exact version is specified. Since each update must be committed to version control, this may lead to a high volume of commits over time.
71+
72+
To reduce the frequency of updates and associated version control commits, you can configure your managed dependencies to use exact version numbers. This prevents automatic updates during dependency synchronization and helps maintain a more stable and predictable build environment. You can read about gradle's version ranges on [gradle.org](https://docs.gradle.org/current/userguide/dependency_versions.html)
73+
{{% /alert %}}
7074

7175
You can trigger a manual synchronization in the menu **App** > **Synchronize dependencies**. You may want to do this, for example, when synchronization failed due to connectivity issues.
7276

0 commit comments

Comments
 (0)