sbt/main
eureka928 1c4094e35d [2.x] refactor: Fix ivyless publish fallbacks and add ivyless publishM2
**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
2026-03-03 13:36:10 +01:00
..
src [2.x] refactor: Fix ivyless publish fallbacks and add ivyless publishM2 2026-03-03 13:36:10 +01:00
NOTICE Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00