Skip to content

Commit c007da4

Browse files
fix: Use maven-core instead of maven-settings-builder for full resolver stack
maven-settings-builder alone is insufficient - SCC plugin also needs DefaultServiceLocator from maven-resolver-impl, which maven-core pulls in transitively. The plugin needs the full Maven resolver stack. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fe4f6b1 commit c007da4

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

producer_with_external_contracts/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ buildscript {
33
mavenCentral()
44
}
55
dependencies {
6-
// Workaround: SCC 5.0.3-SNAPSHOT plugin is missing this transitive dep
7-
// needed by copyContracts task for Maven settings decryption. Remove
8-
// when SCC plugin fixes its dependency declarations.
9-
classpath 'org.apache.maven:maven-settings-builder:3.9.6'
6+
// Workaround: SCC 5.0.3-SNAPSHOT plugin is missing Maven resolver
7+
// transitive deps needed by copyContracts task. Remove when SCC
8+
// plugin fixes its dependency declarations.
9+
classpath 'org.apache.maven:maven-core:3.9.6'
1010
}
1111
}
1212

producer_with_git/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ buildscript {
33
mavenCentral()
44
}
55
dependencies {
6-
// Workaround: SCC 5.0.3-SNAPSHOT plugin is missing this transitive dep
7-
// needed by copyContracts task for Maven settings decryption. Remove
8-
// when SCC plugin fixes its dependency declarations.
9-
classpath 'org.apache.maven:maven-settings-builder:3.9.6'
6+
// Workaround: SCC 5.0.3-SNAPSHOT plugin is missing Maven resolver
7+
// transitive deps needed by copyContracts task. Remove when SCC
8+
// plugin fixes its dependency declarations.
9+
classpath 'org.apache.maven:maven-core:3.9.6'
1010
}
1111
}
1212

0 commit comments

Comments
 (0)