SharedResources
Adds a Shared Resource build feature which allows limiting concurrently running builds using a shared resource. Note that corrensponding Shared Resources project feature should be defined.
Example. Defines an infinite Shared Resource with an unlimited number of read locks. This Shared Resources then used in build configuration
project {
// ...
features {
// ...
sharedResource {
id = "SharedResource_1"
name = "InfiniteResource"
resourceType = infinite()
}
}
buildType {
// ...
features {
// ...
sharedResources {
// ...
readLock("InfiniteResource")
}
}
}
}
Example. Adds a Shared Resources build feature which enables different types of locks.
buildType {
// Other Build Type settings ...
features {
// Other Build Features ...
sharedResources {
lockSpecificValue("Custom", "value1")
readLock("InfiniteResource")
writeLock("Quoted")
}
Content copied to clipboard }
}
Functions
Copies parameters of this object to the specified target
Creates an instance of this build 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.
Adds a lock to all custom values in specified shared resource
Adds a lock to any custom values in specified shared resource
Adds a lock to specific custom value in specified shared resource
Adds a read lock to specified shared resource
Validates this object and reports found errors to the provided consumer
Adds a write lock to specified shared resource