Skip to content

Conversation

@Goooler
Copy link
Member

@Goooler Goooler commented Aug 7, 2025

@Goooler Goooler changed the title Fix the regression of shadowJar inputs Fix the regression of the mainClassName input Aug 7, 2025
@Goooler Goooler requested a review from Copilot August 7, 2025 12:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a regression related to the mainClassName input in the Shadow Gradle plugin's caching functionality. The change ensures proper input tracking for the shadowJar task to maintain correct build cache behavior when the application's main class changes.

  • Adds explicit input property tracking for mainClassName to the shadowJar task
  • Sets a default convention value to prevent configuration errors during evaluation
  • Re-enables a previously disabled test for main class change caching

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
ShadowApplicationPlugin.kt Adds input property registration and default convention for mainClassName to fix caching regression
ShadowJarCachingTest.kt Re-enables test that was disabled due to the regression, removes unused import

@Goooler Goooler merged commit f4a2fb2 into main Aug 7, 2025
11 checks passed
@Goooler Goooler deleted the g/20250807/fix-regression branch August 7, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants