Skip to content

Commit 4eccf38

Browse files
Add Maven Central fallback for com.alipay.sofa artifacts
1 parent c706c5b commit 4eccf38

File tree

1 file changed

+5
-11
lines changed
  • dd-java-agent/instrumentation/sofarpc/sofarpc-5.0

1 file changed

+5
-11
lines changed

dd-java-agent/instrumentation/sofarpc/sofarpc-5.0/build.gradle

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,11 @@ dependencies {
3434
latestDepTestImplementation group: "com.alipay.sofa", name: "sofa-rpc-all", version: "+"
3535
}
3636

37-
tasks.named('compileLatestDepTestGroovy') {
38-
doFirst {
39-
println "=== DEBUG latestDepTestCompileClasspath ==="
40-
classpath.files.findAll { it.name.contains('sofa') }.each { f ->
41-
println " sofa artifact: ${f.name} exists=${f.exists()} size=${f.exists() ? f.size() : 'MISSING'}"
42-
if (f.exists() && f.size() < 1_000_000) {
43-
byte[] bytes = Arrays.copyOf(f.bytes, Math.min(256, (int) f.size()))
44-
println " first bytes (hex): ${bytes.encodeHex()}"
45-
println " first bytes (text): ${new String(bytes).replaceAll('[\\x00-\\x1f\\x7f-\\xff]', '.')}"
46-
}
37+
repositories {
38+
maven {
39+
url "https://repo.maven.apache.org/maven2/"
40+
content {
41+
includeGroup "com.alipay.sofa"
4742
}
48-
println "=== END DEBUG ==="
4943
}
5044
}

0 commit comments

Comments
 (0)