Versioned Settings
Project feature enabling versioned settings in the project. This project feature is created only for projects with obsolete non-portable Kotlin DSL.
Example. Adds a versioned settings project feature for project with obsolete non-portable Kotlin DSL.
project {
// Other Project settings ...
features {
// Other Project Features ...
versionedSettings {
id = "VersionedSettings"
mode = VersionedSettings.Mode.ENABLED
buildSettingsMode = VersionedSettings.BuildSettingsMode.USE_CURRENT_SETTINGS
rootExtId = "${<DslVcsRoot>.id}"
showChanges = false
settingsFormat = VersionedSettings.Format.KOTLIN
storeSecureParamsOutsideOfVcs = true
}
Content copied to clipboard }
}
See also
Types
Specifies what settings to use for builds
Versioned settings format
Versioned settings mode
Properties
If set to true then the project/build configuration settings can be modified via the user interface or REST API and changes will be checked into the settings repository. If set to false then the project settings can be modified only via the settings repository.
Specifies what settings to use for builds
Project settings format name.
Whether settings changes should be shown in builds when a settings VCS root is not attached to a build configuration.
Specifies how secure parameters should be stored. When set to true
, parameters are stored outside of version control. When set to false
, parameters are scrambled and stored in version control.
Functions
Copies parameters of this object to the specified target
Creates an instance of this project feature via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Validates this object and reports found errors to the provided consumer