Skip to content

Commit 511d12a

Browse files
committed
Add Apolloconfig Inst
#12787
1 parent 83ce10e commit 511d12a

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

instrumentation/apolloconfig-apolloclient-1.0/javaagent/build.gradle.kts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ muzzle {
66
pass {
77
group.set("com.ctrip.framework.apollo")
88
module.set("apollo-client")
9-
versions.set("[1.0.0,2.3.0]")
9+
versions.set("[1.0.0,)")
1010
assertInverse.set(true)
1111
}
1212
}
@@ -15,15 +15,8 @@ dependencies {
1515
compileOnly("com.google.auto.value:auto-value-annotations")
1616
annotationProcessor("com.google.auto.value:auto-value")
1717

18-
library("com.ctrip.framework.apollo:apollo-client:1.1.0")
18+
library("com.ctrip.framework.apollo:apollo-client:1.0.0")
19+
testCompileOnly("com.ctrip.framework.apollo:apollo-client:1.1.0")
1920

2021
testImplementation(project(":testing-common"))
21-
22-
latestDepTestLibrary("com.ctrip.framework.apollo:apollo-client:1.1.+")
23-
}
24-
25-
tasks.withType<Test>().configureEach {
26-
// required on jdk17
27-
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
28-
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
2922
}

instrumentation/apolloconfig-apolloclient-1.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/apolloconfig/apolloclient/v1_0/ApolloRepositoryChangeTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ void fireRepositoryChangeTest() {
3333
testConfigRepository.addChangeListener(new TestRepositoryChangeListener());
3434
testConfigRepository.sync();
3535

36-
checkRepositoryChange(namespace);
37-
}
38-
39-
private static void checkRepositoryChange(String namespace) {
4036
testing.waitAndAssertTraces(
4137
trace ->
4238
trace.hasSpansSatisfyingExactly(

0 commit comments

Comments
 (0)