sbt - Not specifying version in addSbtPlugin possible? -
if want include plugin sbt use addsbtplugin() in plugins.sbt. add gen-idea plugin use following line:
addsbtplugin("com.github.mpeltonen" % "sbt-idea" % "1.5.0") alas, i've explicitly specify version 1.5.0. if want use latest available version when becomes available?
when omit third parameter i'm getting following error:
c:\users\jdearing\documents\deleteme\learningscala>sbt gen-idea c:\users\jdearing\.sbt\0.13\plugins\build.sbt:1: error: type mismatch; found : sbt.impl.groupartifactid required: sbt.moduleid addsbtplugin("com.github.mpeltonen" % "sbt-idea" ) ^ [error] type error in expression project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q is possible avoid specifying version in addsbtplugin()?
tl;dr no. there's no way leave version off. it's part of sbt.moduleid.
you can use latest.integration or latest.milestone avoid specifying version explicitly. ivy , hence sbt take care of "selecting latest version being either milestone or release".
you may consult my answer similar question sbt-idea plugin.
Comments
Post a Comment