applyis a Gradle concept. apply from:applies this script to the current project. In other words, simple names found in a script (e.g. path) will be resolved using the object project. To give an example, a script application containing println pathprints project.path.
apply from:, to: script , to:. , script, println path to task, task.path.