SBT depend on specific snapshot version

前端 未结 3 1453
北恋
北恋 2021-02-07 14:29

I have artifactory with multiple snapshots versions such as artifact-0.1-20120831.103456-5.

My project depends on specific snapshot version. If I tell SBT

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-07 14:55

    An ugly workaround would be to install the snapshot artefact in your own groupId (say smith.external) NOT as a SNAPSHOT, using install:instal-file and declare the desired version number instead of declaring the usage of snapshot.

    As you don't expect the version to change, you can rely on this, until you get it to work with a provided stable version (and the regular groupId)

提交回复
热议问题