mirror of https://github.com/sbt/sbt.git
**Problem** 1. The ivyless publish task had ivyModule.value and publisher.value calls inside match/case fallback branches. sbt's macro hoists ALL .value calls from ALL match branches as task dependencies regardless of runtime path, causing failures when useIvy=false even for supported repo types. 2. publishM2 used publishOrSkip which errors when useIvy=false, but M2 targets MavenCache which the ivyless path already supports. **Solution** 1. Remove hoisted .value calls from fallback branches in ivylessPublishTask. Replace with direct sys.error calls since these branches handle truly unsupported repo types. 2. Add ivylessPublishM2Task using Def.ifS that publishes to MavenCache via ivylessPublishMavenToFile when useIvy=false. Generated-by: Claude claude-opus-4-6 |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||