Upgrade to Gradle 9.3.0 and migrate smoke tests from Spring Boot to Shadow plugin#4604
Draft
Upgrade to Gradle 9.3.0 and migrate smoke tests from Spring Boot to Shadow plugin#4604
Conversation
Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
Copilot
AI
changed the title
Upgrade to Gradle 9.3.0
Upgrade to Gradle 9 and fix smoke test Java 8 compatibility
Jan 28, 2026
Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
Copilot
AI
changed the title
Upgrade to Gradle 9 and fix smoke test Java 8 compatibility
Fix smoke test JARs missing Main-Class manifest attribute
Jan 28, 2026
Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
Copilot
AI
changed the title
Fix smoke test JARs missing Main-Class manifest attribute
Upgrade to Gradle 9 and fix smoke test JAR packaging
Jan 28, 2026
…ency Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
Copilot
AI
changed the title
Upgrade to Gradle 9 and fix smoke test JAR packaging
Upgrade to Gradle 9.3.0
Feb 5, 2026
Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
Copilot
AI
changed the title
Upgrade to Gradle 9.3.0
Upgrade to Gradle 9.3.0 and migrate smoke tests from Spring Boot to Shadow plugin
Feb 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spring Boot 2.x plugin incompatible with Gradle 9 (
LenientConfiguration.getFiles()removed). Spring Boot 3.x requires Java 17+, incompatible with Java 8 smoke test containers.Changes
Gradle version
Smoke test JAR packaging (
ai.smoke-test-jar.gradle.kts)Replaced Spring Boot plugin with Shadow plugin:
App-specific fixes
ext.set("mainClassName", "...")compileOnly(prevents classloader conflict when loaded separately as agent extension)spring-boot-loaderdependency (TestController locates JAR via JarLauncher class), exception handling for network failuresTechnical details
Shadow's
append()concatenates files, creating duplicate property keys. Spring Boot reads only first occurrence:Without merged auto-configuration, critical beans like
ServletWebServerFactoryandWebMvcMetricsAutoConfigurationaren't registered, causing startup and Micrometer failures.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
www.bing.com/opt/java/openjdk/bin/java java -javaagent:/applicationinsights-agent.jar -jar /NonDaemonThreads-3.7.7-SNAPSHOT.jar okhttp3(dns block)/opt/java/openjdk/bin/java java -javaagent:/applicationinsights-agent.jar -jar /NonDaemonThreads-3.7.7-SNAPSHOT.jar okhttp3 c1c93a3e44035f56cbfc1a2eaa9723c62cf52156d2b8f0d94a6/config.json(dns block)/opt/java/openjdk/bin/java java -javaagent:/applicationinsights-agent.jar -jar /NonDaemonThreads-3.7.7-SNAPSHOT.jar okhttp3 ACCEPT y es ntime.v2.task/mobash(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.