bnorm/kotlin-power-assert

Gradle plugin transition

Opened this issue · 1 comments

In #103 (comment) you mentioned a transition.

I'm not sure what happened, did you get hired by JetBrains? Or have you always worked there, some context would be nice... anyways, getting sidetracked :)

I would recommend this:

  • On upgrade apply the Kotlin built-in plugin
  • Print a big logger.warn to replace the plugin
  • for Renovate: pull a replacement config.

More info on replacements:
https://docs.renovatebot.com/presets-replacements/

How will this help?
replacements:all is included by recommended, so probably "most" users will receive it: https://docs.renovatebot.com/presets-config/#configrecommended

Deployment:

  • Pull core Renovate config update, referencing the "next" version
  • Wait for it to get released to GitHub.com and propagate otherwise via normal updates.
  • Release the "next" transition version
  • Renovate will open PRs replacing the plugin id and version (won't use the kotlin("...") syntax, but I think that's acceptable for automagic.

Thanks for the info! I was unaware of the Renovate replacement configuration, so I'll definitely take a look at that. I'm still undecided though on if I want a clean upgrade or just fail the build. I think failing the build will be more annoying but will also be the most obvious for all type of upgrades, automatic or not. I worry that a warning and passing build will just go unnoticed, and a Renovate replacement config will only be useful to those that use Renovate. But still thinking about all possible options.

I'm not sure what happened, did you get hired by JetBrains? Or have you always worked there, some context would be nice... anyways, getting sidetracked :)

I joined JetBrains last spring, and have been working on bundling power-assert with Kotlin since the fall!