Class ScriptCompilationStarted_1_0
- All Implemented Interfaces:
com.gradle.scan.eventmodel.EventData
An individual script will be compiled at most once during a build,
and will occur during the first application of the script (see ScriptApplicationStarted_1_0
).
If the script has previously been compiled by another build and has not changed,
it will be loaded from cache and no compilation will occur.
Script compilation generally involves multiple stages.
The stage
attribute differentates between the different stages for a script.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionScriptCompilationStarted_1_0
(long id, long applicationId, String language, String stage) -
Method Summary
-
Field Details
-
id
public final long idThe unique ID of the script compilation event. -
applicationId
public final long applicationIdThe ID of script application that caused this compilation.Refers to a
ScriptApplicationStarted_1_0.id
value, which can be used to identify the script. -
language
The programming language of the script.Possible values are "groovy" and "kotlin".
-
stage
An identifier for the type of compilation.Possible values are "CLASSPATH" and "BODY". The "CLASSPATH" stage occurs first and is to extract any classpath additions and plugins for the script (e.g. buildscript {} and plugins {} blocks). The "BODY" stage occurs subsequently and is the rest of the script.
-
-
Constructor Details
-
ScriptCompilationStarted_1_0
-
-
Method Details