[cgp] A pull request from a fork, built on a machine of its own that holds no credential, launched for this build alone and then replaced (ADR 0025). It resolves through the worker's repository, which serves only open source and MSAL modules of public repositories from CGP, and what Maven Central and the Gradle Plugin Portal have, and starts with an empty Gradle home and no build cache
[cgp] Launched i-0fc97837d2934f5a0, an m8g.2xlarge, for this build alone
[cgp] Checking out openrewrite/rewrite-migrate-java#1368 at fb9ff3c299ed57b033743178811ec97c2ab699c2
[cgp] Merging openrewrite/rewrite-migrate-java#1368 at fb9ff3c299ed57b033743178811ec97c2ab699c2 into main at 994f617ac61cdde30b7415b112434b4d744ad1d5, as GitHub Actions builds a pull request
Merge made by the 'ort' strategy.
[cgp] Pulling 297794628946.dkr.ecr.us-west-2.amazonaws.com/codegenome/ci-build-arm64:latest
[cgp] Running in cgp-openrewrite-rewrite-migrate-java-pull-1368, from 297794628946.dkr.ecr.us-west-2.amazonaws.com/codegenome/ci-build-arm64:latest
[cgp] ./gradlew --init-script /cgp/20261026081735-lcK13/ci-lock.gradle -Dcgp.ci.lock=/cgp/20261026081735-lcK13/lock.json -Dcgp.ci.observed=/cgp/20261026081735-lcK13/observed.jsonl --no-configuration-cache --console=plain --max-workers=8 build
Fetching distribution.
Downloading https://services.gradle.org/distributions/gradle-9.8.2-bin.zip
..............10%..............20%...............30%..............40%...............50%..............60%...............70%..............80%...............90%..............100%
Welcome to Gradle 9.8.2!
Here are the highlights of this release:
- Java 27 support
- Maven mirror settings reuse
- Linked problem locations in build output
For more details see https://docs.gradle.org/9.8.2/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
Building under CGP's lock of 2026-10-26T08:17:35.037875863Z: 146 modules, 17 plugins
> Configure project :
Inferred project: rewrite-migrate-java, version: 3.47.0-SNAPSHOT
> Task :compileJava
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
warning: unknown enum constant ElementType.MODULE
warning: unknown enum constant ElementType.MODULE
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 warnings
> Task :processResources
> Task :classes
> Task :createPropertiesFileForJar
> Task :writeManifestProperties
> Task :jar
> Task :javadoc
> Task :javadocJar
> Task :sourcesJar
> Task :assemble
> Task :licenseCliCompat NO-SOURCE
> Task :licenseMain UP-TO-DATE
> Task :licenseTest UP-TO-DATE
> Task :license UP-TO-DATE
> Task :recipeCsvValidateCompleteness
Recipe marketplace CSV completeness validation passed
> Task :recipeCsvValidateContent
Recipe marketplace CSV content validation passed
> Task :recipeCsvValidate
> Task :compileTestJava
warning: The following options were not recognized by any processor: '[rewrite.javaParserClasspathFrom]'
Note: /workspace/src/test/java/org/openrewrite/java/migrate/javax/AddJaxwsRuntimeGradleTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 warning
> Task :processTestResources
> Task :testClasses
> Task :test
FileuploadToFileUpload2Test > changeCommonsFileupload2JakartaMilestoneToJakartaServlet5() FAILED
org.opentest4j.AssertionFailedError: [Unexpected result in "pom.xml":
diff --git a/pom.xml b/pom.xml
index cc11eaf..6d60e1d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,8 @@
demo
1.0
-
+
org.apache.commons
commons-fileupload2-jakarta-servlet5
2.0.0-M5
]
expected:
"
4.0.0
com.example
demo
1.0
org.apache.commons
commons-fileupload2-jakarta-servlet5
2.0.0-M5
"
but was:
"
4.0.0
com.example
demo
1.0
org.apache.commons
commons-fileupload2-jakarta-servlet5
2.0.0-M5
"
at app//org.openrewrite.test.RewriteTest.assertContentEquals(RewriteTest.java:759)
at app//org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:623)
at app//org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:160)
at app//org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:155)
at app//org.openrewrite.java.migrate.jakarta.FileuploadToFileUpload2Test.changeCommonsFileupload2JakartaMilestoneToJakartaServlet5(FileuploadToFileUpload2Test.java:80)
2418 tests completed, 1 failed, 58 skipped
> Task :test FAILED
[Incubating] Problems report is available at: file:///workspace/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///workspace/build/reports/tests/test/index.html
* Try:
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.8.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 5m 37s
15 actionable tasks: 13 executed, 2 up-to-date
[cgp] The worker's repository refused 3 requests of this build, which a fork's build is served only what is public or MSAL (ADR 0023):
[cgp] org/apache/commons/commons-fileupload2-jakarta-servlet5/2.0.0-M5/commons-fileupload2-jakarta-servlet5-2.0.0-M5.pom: Maven Central answered 502 when asked whether it has org/apache/commons/commons-fileupload2-jakarta-servlet5/2.0.0-M5/commons-fileupload2-jakarta-servlet5-2.0.0-M5.pom
[cgp] com/example/library/1.0.0/library-1.0.0.pom: Neither Maven Central, the Gradle Plugin Portal nor repo.jenkins-ci.org has it, and nothing else is served but CGP's open source and MSAL modules