mirror of
https://github.com/sbt/sbt.git
synced 2026-09-05 09:15:06 +02:00
**Problem** When publishing with coursier, the `visibility` attribute of `<conf />` elements in `ivy.xml` was hardcoded to `"public"`. Configurations defined as hidden (e.g. `scala-tool`) were incorrectly published with `visibility="public"` instead of `"private"`. The root cause was that `Inputs.configExtendsSeq` only extracted config names and extends relationships, discarding the `isPublic` flag from sbt's `Configuration` objects. **Solution** Add a `privateConfigNames: Set[String]` field to the lmcoursier `Project` data class (with `@since` for backward compatibility). Populate it from `Configuration.isPublic` in `CoursierInputsTasks`, and use it in both `IvyXml` implementations to set the correct visibility attribute. Fixes sbt/sbt#5455