sbt/sbt-dynver

Artefacts not available

jmvandebron opened this issue ยท 10 comments

Hi, we're having trouble adding your plugin to our sbt builds, because the artefacts cannot be found.

Can you tell us if/when the latest version will be published on Sonatype (https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html)?

๐Ÿ‘

Some volunteer assistance that would be extremely helpful here would be for someone to send a PR that moves the publishing onto sbt-ci-release, so that new releases can easily be published to Maven Central. If that was in place, somebody (maybe Eugene or Dale or myself) could take care of adding the needed secrets to GitHub Actions, so we (perhaps one of us, or, better, a volunteer maintainer) could easily roll a 4.1.2 simply by pushing a tag.

Regardless, note that once sbt/sbt#7202 is resolved, the plugin will again be available from repo.scala-sbt.org, as it always has been. repo.scala-sbt.org no longer accepts new artifacts (we encourage people to publish to Maven Central instead), but many older plugins such as this one still reside there.

turb commented

If you're mainly stuck because CI has to download it, and if it works locally because of your local cache, a temporary workaround is including the JAR file in your project:

mkdir project/lib
cp ~/.ivy2/cache/scala_2.12/sbt_1.0/com.dwijnand/sbt-dynver/jars/sbt-dynver-4.1.1.jar project/lib

Then remove/comment out addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1") from project/plugins.sbt and commit/push.

This JAR is 65KB, which is sustainable to be included in git.

(I have no experience in pushing to Maven Central, so it's better I don't mess with it)

@turb very helpful โ€” I just opened sbt/sbt#7206 as a place to collect such information. could you say this there?

mkurz commented

@SethTisue I can add the cli-release plugin, shouldn't be too hard and you can add the secrets meanwhile. Doing that I would also migrate to the com.github.sbt groupid (and also let scala steward know about that).

However, the last stable release is 4.1.1 and it looks like current master is for version 5 already, since there exists a 5.0.0-M3 release. So if we want to publish v4 on maven central, I don't really know where to branch of a 4.x branch.
So I would just add ci-release onto current master for now, however the v5.0.0-M3 release was cut over 2 years ago already, so is someone actually working on this plugin here? Or does anyone know when it is ready for a final v5 release? Like what is missing?

mkurz commented

Here we go: #242

Unlike most other plugins, @dwijnand is still active, so I think Dale should have say on if he'd rather manually publish to Maven Central using his organization name.

I'm happy to move it to the shared org name.

mkurz commented

There is scala-steward-org/scala-steward#3026 already ๐Ÿ˜‰

scala-steward migration is merged