sbt/notes/2.0.0
Jozef Koval 73d164fa84
[2.x] fix: Substitute [organisation] literally by defaulting Patterns.isMavenCompatible to false (#9344)
**Problem**

In an Ivy resolver pattern, the [organisation]/[organization] token has its dots rewritten to slashes (org.example → org/example), behaving like Ivy's [orgPath] token rather than being literal. Per the [Apache Ivy spec](http://ant.apache.org/ivy/history/latest-milestone/concept.html), [organisation] should be substituted literally and [orgPath] is the slash-separated form.

Root cause: Patterns.isMavenCompatible defaulted to true, which sbt forwards to Apache Ivy as setM2compatible(true); with m2-compatibility on, Ivy rewrites the [organisation] token to slash form. A user supplying a custom Ivy pattern (e.g. for an SFTP/SSH resolver) inherited that default and got the wrong paths, with no obvious indication why. The only workaround was the non-obvious withIsMavenCompatible(false).

**Solution**

Flip the default of Patterns.isMavenCompatible from true to false, so a hand-written Patterns keeps [organisation] literal by default — matching the Ivy spec.
2026-06-15 23:54:28 -04:00
..
cache-version.md [2.x] feat: Add cacheVersion setting for global cache invalidation (#8993) 2026-04-01 11:23:10 +09:00
dependency-tree-dedup.md [2.x] fix: Collapse duplicate subtrees in dependency tree rendering (#9226) 2026-05-18 19:15:47 -04:00
migration.md [sbt 2.x] remote cache (#7464) 2024-02-07 10:34:06 -05:00
missing-file-error.md [2.x] fix: Report a missing input file clearly instead of an opaque SerializationException (#9271) 2026-05-30 19:29:41 -04:00
parallel-dependency-resolution.md [2.x] fix: Parallelize dependency resolution when no progress bar is rendered (#9270) 2026-05-28 15:31:38 -04:00
parallel-resolution-supershell.md [2.x] feat: Resolve dependencies in parallel under the super shell (#9295) 2026-06-11 15:17:03 -04:00
patterns-maven-compatible-default.md [2.x] fix: Substitute [organisation] literally by defaulting Patterns.isMavenCompatible to false (#9344) 2026-06-15 23:54:28 -04:00
remote-project-update.md [2.x] fix: addressing review comments 2026-03-13 09:34:32 +03:00