GithubHelp home page GithubHelp logo

Comments (9)

nafg avatar nafg commented on July 22, 2024

IIRC mill already has a builtin to check for updates? But it won't rewrite the code will it?

from scala-steward.

fthomas avatar fthomas commented on July 22, 2024

You can strike point two from your list. scala-steward is build-tool-agnostic when it comes to updating versions in source files. It "just" uses text search and replace to update versions in source files. 3) will be the hard part for which scala-steward uses the sbt-updates plugin.

from scala-steward.

nafg avatar nafg commented on July 22, 2024

3 is built into it. mill mill.scalalib.Dependency/updates

from scala-steward.

fthomas avatar fthomas commented on July 22, 2024

This is great! Then only scala-steward needs be changed to call the right mill commands. I'm looking forward to the PR. :-)

from scala-steward.

Baccata avatar Baccata commented on July 22, 2024

I had a very quick dive into the code. Is the following analysis correct ?

  • The algebra that needs to be provided with an alternate implementation is SbtAlg ?

  • SbtAlg currently exposes a reference to ArtificialProject in its interface, the concept of which seems to be fairly coupled to Sbt itself. Maybe ArtificialProject should be a path dependant type both produced and consumed by SbtAlg, so that a similar type can be established for other build tools (if necessary)

  • steward currently implements a mechanism that expects the build tool to dump a json representation of the dependencies involved in the repo. Is there an example (or schema) of the json ?

from scala-steward.

fthomas avatar fthomas commented on July 22, 2024

from scala-steward.

joan38 avatar joan38 commented on July 22, 2024

+1 on this

from scala-steward.

fthomas avatar fthomas commented on July 22, 2024

FYI: Scala Steward does not need the build system any more for finding dependency updates since #1209. This should make it easier to add support for other build systems. Anyone looking into adding support for Mill should also look into #1193 which adds support for Maven.

from scala-steward.

fthomas avatar fthomas commented on July 22, 2024

#1429 made adding support for other build system a lot easier. The only thing required now is an implementation of BuildSystemAlg (to get the dependencies from the build) and plugging it into BuildSystemDispatcher.

from scala-steward.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.