Skip to content

Commit 45e2fe5

Browse files
committed
Add information about disabling Gradle synchronization
1 parent 834cb0b commit 45e2fe5

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,17 @@ If the above options don't work for you, please reach out to [Mendix Support](ht
195195

196196
## Marketplace Modules
197197

198-
Dependency information is included per module and included in Marketplace Modules. The actual artifacts (`.jar` files) are not part of the module. They are downloaded to the `vendorlib` folder automatically when synchronization is run when the module is imported.
198+
Dependency information is included per module and included in Marketplace Modules. They are downloaded to the `vendorlib` folder automatically when synchronization is run when the module is imported. Artifacts (`.jar` files) will also be included in the exported module packages, these are used if the module is imported in a Studio Pro which has [Gradle synchronization disabled](#disabling-synchronization).
199199

200200
If you have an issue with the managed dependencies of a Marketplace module, you can revert to an earlier version by removing the new version and downloading an earlier version from the Marketplace.
201201

202+
## Offline Usage {#disabling-synchronization}
203+
204+
In the Deployment tab of the Studio Pro preferences [Gradle synchronization](/refguide/preferences-dialog/#gradle-synchronization) can be disabled.
205+
This enables applications to be started even if Studio Pro is offline or in an airgapped environment.
206+
207+
Note that this will prevent managed dependencies from being synchronized, potentionally causing compile errors. SBOM generation is also not supported while Gradle synchronization is disabled. We recommend airgapped users to configure a [custom repository]{#custom-repos} instead of relying on disabling Gradle synchronization.
208+
202209
## Troubleshooting
203210

204211
There can be multiple reasons the dependencies cannot be resolved. See the following for some common failure causes with steps on how to fix the issue.

content/en/docs/refguide/modeling/menus/edit-menu/preferences-dialog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ This is the directory where new apps are stored. It is used in the [App Settings
5454

5555
## Deployment Tab {#deployment}
5656

57+
In the **Deployment** tab you can configure various settings related to application deployment.
58+
59+
{{< figure src="/attachments/refguide/modeling/menus/edit-menu/preferences-dialog/preferences-deployment-tab.png" alt="Preferences" width="600" class="no-border" >}}
60+
5761
### JDK {#jdk}
5862

5963
Here the directories of the Java Development Kit (JDK) for each supported Java version can be selected.
@@ -74,6 +78,10 @@ This setting is visible and effective when the React client is enabled. By defau
7478

7579
### Build
7680

81+
#### Gradle Synchronization {#gradle-synchronization}
82+
83+
Disabling this option will disable the synchronization of managed dependencies. For more information, see the [Offline Usage](/refguide/managed-dependencies/#disabling-synchronization) section in *Managed Dependencies*.
84+
7785
#### Gradle Directory
7886

7987
A directory where Gradle is located on the computer that you use to deploy the application. The correct directory is usually located automatically.
58.3 KB
Loading

0 commit comments

Comments
 (0)