@@ -27,19 +27,26 @@ sourceSets {
2727 }
2828}
2929
30+ // GWT moved from `com.google.gwt` to `org.gwtproject` in 2.10.0. In latest-deps mode,
31+ // rewrite every `com.google.gwt:gwt-*` coordinate to the new group so the agent compiles
32+ // and tests against the modern artifacts. The version is left as `latest.release` and
33+ // gets pinned to a concrete release by the convention plugin's standard pinning hook.
34+ if (otelProps.testLatestDeps) {
35+ configurations.configureEach {
36+ resolutionStrategy.dependencySubstitution {
37+ listOf (" gwt-user" , " gwt-dev" , " gwt-servlet" ).forEach { artifact ->
38+ substitute(module(" com.google.gwt:$artifact " ))
39+ .using(module(" org.gwtproject:$artifact :latest.release" ))
40+ }
41+ }
42+ }
43+ }
44+
3045dependencies {
3146 // these are needed for compileGwt task
32- if (otelProps.testLatestDeps) {
33- compileOnly(" org.gwtproject:gwt-user:latest.release" )
34- compileOnly(" org.gwtproject:gwt-dev:latest.release" )
35- compileOnly(" org.gwtproject:gwt-servlet:latest.release" )
36- testImplementation(" org.gwtproject:gwt-servlet:latest.release" )
37- } else {
38- compileOnly(" com.google.gwt:gwt-user:2.0.0" )
39- compileOnly(" com.google.gwt:gwt-dev:2.0.0" )
40- compileOnly(" com.google.gwt:gwt-servlet:2.0.0" )
41- testImplementation(" com.google.gwt:gwt-servlet:2.0.0" )
42- }
47+ library(" com.google.gwt:gwt-user:2.0.0" )
48+ library(" com.google.gwt:gwt-dev:2.0.0" )
49+ library(" com.google.gwt:gwt-servlet:2.0.0" )
4350
4451 testInstrumentation(project(" :instrumentation:servlet:servlet-3.0:javaagent" ))
4552 testInstrumentation(project(" :instrumentation:jetty:jetty-8.0:javaagent" ))
0 commit comments