Add Support for Ammonite
Feels like opt in behaviour (through .scala-steward.conf) whereby scala steward would scan through the repository to find ammonite ivy imports of the form:
import $ivy.`org.scalaz::scalaz-core:7.2.27`
Could be quite useful/interesting.
A very simple solution to also update Ammonite scripts would be:
- Change Scala Steward to also edit
.scfiles.isSourceFileneeds to be changed for that. - Add the dependencies of your Ammonite scripts also to your sbt build. Maybe to a dummy subproject.
Scala Steward will then update the version in the build and in the Ammonite scripts.
I'm using the same trick to also update versions in my Giter8 template.
Will pick up this one next. To work on it this week :)
Awesome, thanks for the great work @manuelcueto !
@fthomas, I don't think this ticket should be closed, considering the proposed solution seems to only be working for ammonite deps that are also mentioned in an sbt build 😿
@fthomas, I don't think this ticket should be closed, considering the proposed solution seems to only be working for ammonite deps that are also mentioned in an sbt build 😿
Just to be sure, this is the case right? At work we have a few repos that are only Ammonite scripts that seem to not be captured, so I'm assuming this is correct. Is it possible to get this re-opened to potentially capture this situation?
Btw, anyone interested in this request is probably also interested in #2686 which is about updating dependencies in Scala CLI using lib directives. From my perspective both requests are basically the same and the only difference is the syntax used for declaring dependencies.