sbt-typelevel icon indicating copy to clipboard operation
sbt-typelevel copied to clipboard

Setting tlVersionIntroduced on a project

Open catharsis opened this issue 8 months ago • 0 comments

Is there a way to set tlVersionIntroduced for a subproject in a multi-project build? My use case is that I'm adding a new subproject to a multi-project, which causes versionPolicyFindDependencyIssues / mimaPreviousClassfiles to fail, since this subproject was never published before (no previous classfiles / artifacts exist). tlVersionIntroduced seems to be what I want, but that's set on the build - not project - level.

Skimming through old issues here, I found https://github.com/typelevel/sbt-typelevel/issues/57, which suggests it used to be configurable per project, but was changed to be a build setting.

I'm currently doing

    mimaPreviousArtifacts := (
      if (tlBaseVersion.value == subprojectIntroducedVersion) Set.empty else mimaPreviousArtifacts.value
    )

to achieve what I want, but I wanted to double check if there's some other mechanism I should be using for this?

catharsis avatar May 08 '25 11:05 catharsis