Skip to content

Commit 4a67f8f

Browse files
fix: Use maven-settings-builder instead of maven-core (minimal dep)
Narrow the buildscript dependency from maven-core (which drags in ~20+ transitive deps) to maven-settings-builder which directly contains the missing SettingsDecryptionRequest class. Reduces classpath conflict risk. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a8d81bb commit 4a67f8f

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

producer_with_external_contracts/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ buildscript {
33
mavenCentral()
44
}
55
dependencies {
6-
classpath 'org.apache.maven:maven-core:3.9.6'
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'
710
}
811
}
912

producer_with_git/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ buildscript {
33
mavenCentral()
44
}
55
dependencies {
6-
classpath 'org.apache.maven:maven-core:3.9.6'
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'
710
}
811
}
912

0 commit comments

Comments
 (0)