The extension to configure actual platform specific behaviour for a project.
| Type | Name and description |
|---|---|
static java.lang.String |
NAMEName of this extension for this plugin. |
| Constructor and description |
|---|
PlatformExtension
(org.gradle.api.Project project, Platform platform)Initialize the extension instance with the actual project we want to configure. |
| Type | Name and description |
|---|---|
void |
mac(groovy.lang.Closure closure)Evaluates the given closure on the current project of the current platform we are running on is MacOs. |
void |
unix(groovy.lang.Closure closure)Evaluates the given closure on the current project of the current platform we are running on is Unix or Linux. |
void |
win(groovy.lang.Closure closure)Evaluates the given closure on the current project of the current platform we are running on is Windows. |
void |
x86(groovy.lang.Closure closure)Evaluates the given closure on the current project of the current platform we are running on is x86. |
void |
x86_64(groovy.lang.Closure closure)Evaluates the given closure on the current project of the current platform we are running on is x86_64. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Initialize the extension instance with the actual project we want to configure.
project - the Gradle project instanceEvaluates the given closure on the current project of the current platform we are running on is MacOs.
closure - the closure to apply to the current projectEvaluates the given closure on the current project of the current platform we are running on is Unix or Linux.
closure - the closure to apply to the current projectEvaluates the given closure on the current project of the current platform we are running on is Windows.
closure - the closure to apply to the current projectEvaluates the given closure on the current project of the current platform we are running on is x86.
closure - the closure to apply to the current projectEvaluates the given closure on the current project of the current platform we are running on is x86_64.
closure - the closure to apply to the current projectGroovy Documentation