VersionedSettings
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
Constructors
Types
Specifies what settings to use for builds
Versioned settings format
Versioned settings mode
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
Properties
Specifies what settings to use for builds
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.