SonarQube for IDE - Import Custom Core

Please provide

  • Operating system: MacOS Sequoia 15.3
  • SonarQube for IntelliJ plugin version: 10.14.0.80203
  • IntelliJ version: IU-241.19416.15
  • Programming language you’re coding in: Java / Kotlin
  • Is connected mode used: SonarQube Server

And a thorough description of the problem / question:

Hello. Im currently doing an investigation to see if i can obtain Rules using a custom API.
In order to achieve this i must do some modifications on “server-api” package of SonarLint Core.

My question → ¿is there a way to import a custom CORE from the JetBrains plugin?

If it can be done, ¿can i only import the “server-api” submodule instead of the whole core?

Thanks!

Hi @Felipe_Lucas_Otero,

there is no way to include a custom SLCORE version with our plug-in.
The only way for you would be to both fork SonarLint Core and SonarQube for IntelliJ repositories and build it yourself.

We have no plan on changing this.

Best,
Tobias

Hello. Thanks for the quick reply.

Sorry for my bad explanation. I currently have a forked version of the SonarQube for IDE (Jetbrains) with minor modifications and i intend to import the custom core (Forked version of SonarLint Core) to this project.

How can i achieve this?

Thanks!

Hi @Felipe_Lucas_Otero,

a good way to start is looking at the SonarQube for IntelliJ repository where we reference SLCORE. You will have to change the version and further down the rabbit hole where the artifact is coming from.

We have our artifacts either on Maven Central or our private Artifactory. You might have to upload it to your private Artifactory / Nexus or whatsoever or use Maven local.
It is not as straightforward as just replacing the version number.

Best,
Tobias

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.