-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Gradle: Property "container.labels" does not respect "convention" values #3986
Comments
I just notice that the class |
Actually, I think Jib should not try to hide the |
Yeah, when we wrote the code for the input variables, we were not so familiar with Gradle. I still don't know what the difference between calling Some of the past issues (not an exhaustive list): #3927 #3094 #3489 #3708 #2727 |
Hi @ChristianCiach, thanks for bringing this up. Since we are accepting contributions, the best way to determine if your suggestion is non-breaking is by running tests on a PR, so feel free to go ahead with it! cc'ing @emmileaf and @mpeddada1 - you may have more info on this |
Convention values are deprecated in Gradle 8.6, closing as not planned. |
@blakeli0 The deprecated Convention interface that you linked has absolutely nothing to do with the These are not deprecated and this issue is still valid. |
Environment:
Description of the issue:
I am trying to set convention-values to the Gradle MapProperty
jib.container.labels
from within my Gradle Init-Script. Unfortunately, this doesn't work, because the MapProperty is explicitly initialized with.empty()
by the Jib plugin, overriding any convention values of property.jib/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java
Line 61 in 9f2d0ba
I've prepared a commit to fix this, but the PR-template advises me to create an issue first. My fix: ChristianCiach@7b6f5b5
Expected behavior:
Convention-values should be respected.
Steps to reproduce:
jib.container.labels.convention(['a': 'b'])
in your gradle script.jib.container.labels
to any value.jib-gradle-plugin
Configuration:Relevant part of my init-script:
The text was updated successfully, but these errors were encountered: