Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Adding repository to multiple projects

mitov September 1, 2023

I have repository that is used in multiple projects. I am unable to add it to more than one project :-( . How to add it to all projects that depend on the repository?

1 answer

0 votes
Graham Twine
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 2, 2023

Hello @mitov

 

This is not possible. Maybe the projects should be repositories that depend on this repository in the same project?

mitov September 2, 2023

Thank you @Graham Twine 

Separating the projects per repository is not possible.

Some of the repositories are open source, and they are libraries naturally used by multiple projects.

Others are private libraries used across projects and products as well.

This limitation makes projects completely useless from a practical point of view :-( .

I am very disappointed, as I got excited about the possibility of organizing my repositories per projects, but well... I guess just a useless feature :-(

Graham Twine
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2023

@mitov  May I challenge why a project needs access to the source of another project?

 

Most applications have dependencies, tools like maven, gradle or yarn to mention but a few assist a team to include these in a project.

This depends on the technology used to create the binary.

 

With the above in mind; one of your core libraries should be left in its own project and this project may include any number of repositories.

 

When a new version of the project is built it should be deployed to something like Nexus, Artifactory, nuget or your custom internal Docker registry.

Other projects can depend on different versions of this thing.

The team developing the core thing may also release snapshots in things like a nightly build so teams using the library can also get new features not yet released.

 

Maven or Gradle is used so I can include things like the Jira API from atlassians pulic repo to write a custom plugin. I do not require the source code to Spring or some other propitiatory library.

 

If I am understanding your use case correctly I would propose using something like a private repository to manage dependencies.

 

 

Kind Regards,

Graham

mitov September 3, 2023

Thank you @Graham Twine ,
The projects are Desktop applications build in various IDEs, and the libraries are component libraries that need to be maintained compiled and installed in the IDEs for the development.

None of this uses Docker, or other build deployment tools.

Like Sabine Mayer likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events