Share across multiple projects

(Luke) #1

I have mutliple TypeScript projects which all basically use the same sonar properties except “projectKey”, “projectName” etc.

When I change something in the settings I have to change it in all projects, which takes a while and is annoying. So I want to share it somehow between the projects.

How can I achieve this?

Is it possible to extend other properties?
Or can I define multiple properties files when I execute the sonarqube-scanner?
Can I change the location of the properties file to a different location I share with other projects and overwrite the project-specific settings when calling sonarqube-scanner?
Do you have a different idea?

When nothing of it works my fallback plan is to don’t use the properties file at all but call the sonarqube-scanner directly with the settings which I then require from a shared module.