Skip to content

Setting tlVersionIntroduced on a project #816

Description

@catharsis

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 #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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions