-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
a:enhancementNew feature or requestNew feature or request
Description
Build parameters are a part of build system API, and it would be nice to provide migration path for the properties.
Consider a scenario:
- I've added
jdkBuildVendor,jdkBuildVersion,jdkBuildImplementationparameters quite some time ago whenbuild-parametersdid not support groups:
https://github.com/pgjdbc/pgjdbc/blob/6daee7d4251d568d3de52afd3bbfa8328f296681/build-logic/build-parameters/build.gradle.kts#L30-L44 - Now I consider migrating to groups like
jdk.build.version,jdk.build.implementationand so on. The issue is that there might be end-users who have their own shell scripts and CI systems that still use old property names. If I rename the build properties, it would make their build invalid
I would like to have property evolution (e.g. consider Kotlin's @Deprecated), so I could:
- Mark properties as deprecated, so the users get warnings if they still use them
- Mark properties as hidden, so they work, yet they are hidden from the documentation
- Allow "new" properties to fetch the values from the older ones. For instance, if I add
jdk.build.version, I would like to still support users that still use-PjdkBuildVersion=17(~make the default ofjdk.build.versioncompute based onjdkBuildVersionproperty)
Metadata
Metadata
Assignees
Labels
a:enhancementNew feature or requestNew feature or request