sonar-groovy icon indicating copy to clipboard operation
sonar-groovy copied to clipboard

Missing artifact into maven central repository

Open paissad opened this issue 6 years ago • 6 comments

Hello,

i don't see the versions 1.5 and 1.6 into the maven central repository https://repo1.maven.org/maven2/org/sonarsource/groovy/sonar-groovy-plugin/ Is it planned to add them ?

i'm using SonarQube 7.8 , and if i understand the table correctly, i should use version 1.6 of the groovy plugin

Regards,

paissad avatar Sep 25 '19 12:09 paissad

No, since you can install this plugin from the SonarQube marketplace, it doesn't need to be on Maven Central

TobiX avatar Sep 25 '19 14:09 TobiX

@TobiX actually, i'm developing a plugin which relies on sonar-xml and sonar-groovy, ... i added sonar-xml as a dependency (from maven central), but i could not add the latest version of sonar-groovy as a dependencey since only the version 1.4 is available so far. Downloading sonar-groovy from marketplace and installing it in SonarQube is not the real concern here. Developing a plugin by using the correct version is my main concern. I hope you understand my use a bit better now.

paissad avatar Sep 25 '19 15:09 paissad

Fair enough. Would BinTray be enough? AFAIR deploying to Maven Central is quite a process... Using BinTray is just a bunch of clicks :smile:

TobiX avatar Sep 25 '19 20:09 TobiX

@TobiX I don't know if bintray is globally accessible from the artifacory repository i use. For me, if you already have your maven central account, then it's pretty fast to upload an artifact. Do you have some artifacts in your bintray repository so i can check if it's OK for accessing it ?

paissad avatar Sep 28 '19 08:09 paissad

I added a BinTray repository for this plugin. Release artifacts can be downloaded from there:

  • Web: https://bintray.com/tobix/sonar-groovy/sonar-groovy
  • Maven repo: https://dl.bintray.com/tobix/sonar-groovy

Future artifacts will be uploaded on release. I retroactively uploaded 1.6 using Maven, so the artifacts are not bit-identical to that release, even if they contain the same code.

Depending on the plugin should be the same as before:

<dependency>
  <groupId>org.sonarsource.groovy</groupId>
  <artifactId>sonar-groovy-plugin</artifactId>
  <version>1.6</version>
</dependency>

TobiX avatar May 12 '20 07:05 TobiX

Since BinTray has been deprecated, new releases will be deployed to GitHub packages: https://github.com/Inform-Software/sonar-groovy/packages/800725

You probably need to add the repository somehow and then add:

 <dependency>
  <groupId>org.sonarsource.groovy</groupId>
  <artifactId>sonar-groovy-plugin</artifactId>
  <version>1.7</version>
</dependency>

TobiX avatar Jul 22 '21 16:07 TobiX