Skip to content

Conversation

@snazy
Copy link
Contributor

@snazy snazy commented Nov 17, 2025

Refs #1848.


  • CHANGELOG's "Unreleased" section has been updated, if applicable.

@snazy snazy marked this pull request as draft November 17, 2025 11:09
@snazy
Copy link
Contributor Author

snazy commented Nov 17, 2025

Damn - depends on #1854

@Goooler Goooler mentioned this pull request Nov 17, 2025
1 task
@snazy snazy force-pushed the preserve-first-pattern branch from d4b591d to d8def90 Compare November 17, 2025 12:49
@snazy snazy marked this pull request as ready for review November 17, 2025 12:49
snazy and others added 3 commits November 17, 2025 14:34
Deprecate `PreserveFirstFoundResourceTransformer.resources` and migrate usages to `include()` configuration functions.

This comment was marked as outdated.

Goooler and others added 2 commits November 17, 2025 21:52
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…nsformers/PreserveFirstFoundResourceTransformer.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
protected val found: MutableSet<String> = mutableSetOf()

@get:Deprecated("Use `include(..)` instead")
@get:Input
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
@get:Input

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm - I'm not sure about removing this. If we remove it, Gradle wouldn't consider it as a cache-key input (and it's not an @Internal either).

Copy link
Member

Choose a reason for hiding this comment

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

@Input // Trigger task executions after includes changed.
override fun getIncludes(): MutableSet<String> = patternSet.includes

Copy link
Member

Choose a reason for hiding this comment

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

I missed that there is a test for that... The task should be cached due to the includes.

…nsformers/PreserveFirstFoundResourceTransformer.kt
…nsformers/PreserveFirstFoundResourceTransformer.kt
@Goooler Goooler enabled auto-merge (squash) November 17, 2025 13:54
auto-merge was automatically disabled November 17, 2025 14:16

Head branch was pushed to by a user without write access

@Goooler Goooler enabled auto-merge (squash) November 17, 2025 14:18
@Goooler Goooler merged commit 6b5f04b into GradleUp:main Nov 17, 2025
7 checks passed
@snazy snazy deleted the preserve-first-pattern branch November 17, 2025 14:30
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