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