4.3.2. Configuring Access to Repository
- Main Repository
-
When you create a new project, you have to select a main repository containing CUBA artifacts. By default, there are two options (and you can have more if you set up a private repository):
-
https://repo.cuba-platform.com/content/groups/work
- a repository located at Haulmont’s server. It requires common credentials which are specified right in the build script (cuba
/cuba123
). -
https://dl.bintray.com/cuba-platform/main
- a repository hosted at JFrog Bintray. It has anonymous access.
Both repositories have identical contents for the latest platform versions, but Bintray does not contain snapshots. We assume that Bintray is more reliable for worldwide access.
In case of Bintray, the build script of the new project is also configured to use Maven Central, JCenter and Vaadin Add-ons repositories separately.
Bintray artifact repository, available by the
https://dl.bintray.com/cuba-platform
URL, will soon be shut down by its maintainer (JFrog). Please avoid using the Bintray repository in your projects. The preliminary shutdown schedule is the following:-
After 31 March 2021:
-
New releases of the platform and add-ons will no longer be uploaded to the Bintray repository.
-
New commercial add-on subscriptions will no longer be given access to the old releases of add-ons located in the Bintray repository.
-
-
After 1 February 2022:
-
Bintray repository will no longer be available. Existing CUBA projects using this repository will not be able to resolve, build and run.
-
You should use the second
https://repo.cuba-platform.com
repository in all projects instead.The official announcement: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/
-
- Custom Repositories
-
Your project can use any number of custom repositories containing application components. They should be specified in
build.gradle
manually after the main repository, for example:repositories { // main repository containing CUBA artifacts maven { url 'https://repo.cuba-platform.com/content/groups/work' credentials { // ... } } // custom repository maven { url 'http://localhost:8081/repository/maven-snapshots' } }