threads

abstract fun threads(value: String)(source)

Sets the number of threads that should be used by Maven to execute the requested task(s). This function takes a String value with the syntax required by Maven's -T argument. The function maxThreads can be used as an alternative to set this value.

Using the threads (or maxThreads) function will overwrite the value set by this function.

See Also:

Parameters

value

The number of threads to set in the syntax required by Maven. This should be either natural number indicating the number of threads, or a floating point number followed by C as a multiplier for the number of CPU cores available.

Throws

If value does not match the expression ^\d+(\.\d+C)?$.