com-lihaoyi / mill

Your shiny new Java/Scala build tool!
https://mill-build.com/
MIT License
1.99k stars 303 forks source link

Send dependency modules data as `MavenDependencyModule` #3148

Open kasiaMarek opened 2 months ago

kasiaMarek commented 2 months ago

Currently mill sends only very limited information about dependency modules:

{
   "name": "org.scala-lang:scala3-library_3",
   "version": "3.3.3"
}

In Metals that information will be used to create information on used libraries for debug adapter (https://github.com/scalameta/metals/pull/6383). For it to work properly with mill, mill should send data in MavenDependencyModule form with jar and sources jar artifacts.

{
    "name": "scala3-library_3",
     "version": "3.3.3",
      "dataKind": "maven",
       "data": {
          "organization": "org.scala-lang",
          "name": "scala3-library_3",
          "version": "3.3.3",
          "artifacts": [
            {
              "uri": "file://.../scala3-library_3-3.3.3.jar"
            },
            {
              "uri": "file:///.../scala3-library_3/3.3.3/scala3-library_3-3.3.3-sources.jar",
              "classifier": "sources"
            }
          ]
      }
}