@@ -39,11 +39,12 @@ import java.util.regex.Pattern
3939 * poisoning: returning null at descriptor-lookup time prevents Ivy from caching
4040 * the descriptor with resolver=localm2.
4141 *
42- * Strictness is gated by -Dgroovy.grape.strict-localm2=true (default false for
43- * this initial release; planned to flip to default-true in 6.1, drop the flag
44- * in 7.0). Strictness is also automatically skipped for snapshot revisions
45- * (Maven uses timestamp-suffixed filenames there), for non-m2-compatible
46- * configurations, and when the resolver root is not a file URL.
42+ * Strictness is enabled by default. Disable with -Dgroovy.grape.strict-localm2=false
43+ * if you maintain a custom resolver setup where rejected POM-only entries cause
44+ * legitimate problems (the resolver will still skip strictness automatically
45+ * for snapshot revisions — Maven uses timestamp-suffixed filenames there — for
46+ * non-m2-compatible configurations, and when the resolver root is not a file URL,
47+ * so the opt-out should rarely be needed).
4748 */
4849@CompileStatic
4950class StrictLocalM2Resolver extends IBiblioResolver {
@@ -98,7 +99,7 @@ class StrictLocalM2Resolver extends IBiblioResolver {
9899
99100 private boolean shouldEnforce () {
100101 if (! isM2compatible()) return false
101- Boolean . parseBoolean(System . getProperty(ENABLE_PROPERTY , ' false ' ))
102+ Boolean . parseBoolean(System . getProperty(ENABLE_PROPERTY , ' true ' ))
102103 }
103104
104105 /**
0 commit comments