Skip to content

Commit 23fd343

Browse files
Merge pull request #8461 from atennapel/run/4196-jdm-offline-usage
[RUN-4196] Add information about disabling Gradle synchronization
2 parents c785d57 + a12dac5 commit 23fd343

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,23 @@ 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 for each module and included in Marketplace Modules. Dependencies 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+
{{% alert color="info" %}}
205+
This feature was introduced in Mendix versions 10.16.0, 10.12.7, and 10.6.17.
206+
{{% /alert %}}
207+
208+
In the Deployment tab of the Studio Pro preferences [Gradle synchronization](/refguide/preferences-dialog/#gradle-synchronization) can be disabled.
209+
This means that applications can be started even if Studio Pro is offline or in an air gapped environment.
210+
211+
{{% alert color="info" %}}
212+
This prevents managed dependencies being synchronized, potentially causing compile errors and version conflicts. In addition, you cannot generate SBOMs while Gradle synchronization is disabled. Mendix recommends that air gapped users configure a [custom repository](#custom-repos) instead of relying on disabling Gradle synchronization.
213+
{{% /alert %}}
214+
202215
## Troubleshooting
203216

204217
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: 12 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,14 @@ 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+
{{% alert color="info" %}}
84+
This feature was introduced in Mendix versions 10.16.0, 10.12.7, and 10.6.17.
85+
{{% /alert %}}
86+
87+
This option controls the synchronization of managed dependencies. For more information, see the [Offline Usage](/refguide/managed-dependencies/#disabling-synchronization) section in *Managed Dependencies*.
88+
7789
#### Gradle Directory
7890

7991
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)