Gradle project deployment in close network

Hello. Long time no see, (deprecated) platform.

I know that support ended long time ago, but we here still have some issues with software written using legacy platform.
Long story short i’m trying to move all the project dependencies to a local machine, but fail. All of my attempts ended with exceptions of a different kind. What I tried:

  • move .m2 and .gradle to a local machine
  • download dependencies to a maven flatDir
  • copy-paste all .gradle .jars and .poms to a flatDir
  • ChatGPT my problem and using given gradle dependency downloading tasks

Sadly enough I cannot proxy repositories to that target machine, but can prepare everything i need on an online machine. Problems i faced:

  • no cached version of dependencies available
  • no gradle-idea-ext plugin found

Is there a way to move the deploying environment to an offline machine?

Hi,
There is a CUBA-SDK tool for offline development,
take a look here: No internet on the PC - #4 by evgeny.zaharchenko

sadly enough it doesn’t work fine… i set the path to get a distribution, but it ignores the setting. I’ll create an issue on github, but the topic problem is not solved…((

sdk>sdk
CUBA SDK
================================================================================
SDK home: /home/ovchinnikov_ii/cuba-cli/sdk
Gradle path: /home/ovchinnikov_ii/cuba-cli/sdk/gradle
Gradle cache: /home/ovchinnikov_ii/cuba-cli/sdk/gradle/cache
sdk>properties
SDK properties
================================================================================
apiVersion: 5
artifact.resolver: gradle
cuba.addon.marketplaceUrl: https://www.cuba-platform.com/AppComponents11_1.json
cuba.artifact.base.url: https://repo.cuba-platform.com/service/local/lucene/search?
cuba.nexus3.repo.url: https://nexus.cuba-platform.cn/service/rest/v1/search
gradle.cache: /home/ovchinnikov_ii/cuba-cli/sdk/gradle/cache
gradle.downloadLink: https://nexus.local/repository/file-share/dev/java/gradle/gradle-%s-bin.zip
gradle.home: /home/ovchinnikov_ii/cuba-cli/sdk/gradle
gradle.version: 5.6.4
jmix.addon.ignoredComponents: minio-file-storage,figma-ui-kit
jmix.addon.marketplaceUrl: https://www.jmix.io/AppComponents.json
jmix.artifact.base.url: https://global.repo.jmix.io/service/rest/v1/search?repository=public&
maven.downloadLink: http://archive.apache.org/dist/maven/maven-3/%s/binaries/apache-maven-%s-bin.zip
maven.version: 3.6.3
nexus.downloadLink.mac: https://download.sonatype.com/nexus/3/nexus-<version>-mac.tgz
nexus.downloadLink.unix: https://download.sonatype.com/nexus/3/nexus-<version>-unix.tar.gz
nexus.downloadLink.win64: https://download.sonatype.com/nexus/3/nexus-<version>-win64.zip
nexus.version: 3.27.0-03
repository.type: none
sdk.export.path: /home/ovchinnikov_ii/cuba-cli/sdk/export
sdk.files: /home/ovchinnikov_ii/cuba-cli/sdk/files
sdk.home: /home/ovchinnikov_ii/cuba-cli/sdk
template.repositoryUrl: http://localhost:%s/
version: DEVELOPMENT
sdk>list cuba
Resolved CUBA components
================================================================================

Installed CUBA components
================================================================================

sdk>resolve cuba
? Provide CUBA version > 7.2.20
Resolving CUBA:7.2.20
Downloading https://services.gradle.org/distributions/gradle-6.6.1-bin.zip

FAILURE: Command execution failed with an exception.
* What went wrong:
> Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-6.6.1-bin.zip'.

* Try:
Run `stacktrace` command to get full stack trace or use --stacktrace option.

* Visit https://www.cuba-platform.com/discuss/ to get more help.

sdk>