Skip to content

Commit f210698

Browse files
fix: Resolve Maven classloader conflict and Gradle missing dependency
- Maven: Pre-resolve SCC plugin for ALL modules in test profile, not just 'producer', to avoid BasicAuthCache ClassCastException when later modules (producer_with_xml) trigger SNAPSHOT resolution - Gradle: Add maven-core to buildscript classpath for producer_with_external_contracts to fix ClassNotFoundException for SettingsDecryptionRequest during copyContracts task Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent aadafb8 commit f210698

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
- name: Pre-resolve SCC plugin to avoid classloader conflict
2525
run: |
2626
cd common && ./mvnw dependency:resolve-plugins -B && cd ..
27-
./mvnw dependency:resolve-plugins -Ptest -B -pl producer || true
27+
./mvnw dependency:resolve-plugins -Ptest -B || true
2828
- name: Build with Maven
2929
run: ./scripts/runMavenBuilds.sh

producer_with_external_contracts/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
}
5+
dependencies {
6+
classpath 'org.apache.maven:maven-core:3.9.6'
7+
}
8+
}
9+
110
plugins {
211
id 'groovy'
312
id 'org.springframework.boot'

0 commit comments

Comments
 (0)