-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add explicit caching test for PropertiesFileTransformer
#1208
Add explicit caching test for PropertiesFileTransformer
#1208
Conversation
036832e
to
09ccc2a
Compare
This reverts commit 09ccc2a.
PropertiesFileTransformer
PropertiesFileTransformer
d0d41e8
to
fa0d5f0
Compare
fa0d5f0
to
ef872cf
Compare
...onalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/caching/TransformerCachingTest.kt
Show resolved
Hide resolved
…0250128/add-tests-for-transformer
} | ||
|
||
assertFirstExecutionSuccess() | ||
assertions("FOO") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expected to contain:<"FOO=bar"> but was:<"#
foo=bar
"> (com.github.jengelman.gradle.plugins.shadow.util.JarPath@5827af16)
org.opentest4j.AssertionFailedError: expected to contain:<"FOO=bar"> but was:<"#
foo=bar
This failure looks due to keyTransformer
being @Transient
, can't be serialized back, it's null in
Lines 179 to 181 in 58564d3
if (keyTransformer == null) { | |
return properties as CleanProperties | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried a serializable type in d71e879, but with a new error
* What went wrong: |
-- | --
| com/github/jengelman/gradle/plugins/shadow/transformers/KeyTransformer |
| > com.github.jengelman.gradle.plugins.shadow.transformers.KeyTransformer |
| |
| * Try: |
| > Run with --info or --debug option to get more log output. |
| > Run with --scan to get full insights. |
| > Get more help at https://help.gradle.org. |
| |
| * Exception is: |
| java.lang.NoClassDefFoundError: com/github/jengelman/gradle/plugins/shadow/transformers/KeyTransformer
No idea how to fix them now...
Refs #1206.