com.eriwen.gradle.js.source.internal.InternalGradle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-js-plugin Show documentation
Show all versions of gradle-js-plugin Show documentation
A Gradle plugin for working with JS.
package com.eriwen.gradle.js.source.internal;
import org.gradle.api.Project;
import org.gradle.api.internal.file.FileResolver;
import org.gradle.internal.reflect.Instantiator;
import org.gradle.api.internal.project.ProjectInternal;
/**
* Centralises access to internal Gradle API
*/
public abstract class InternalGradle {
public static Instantiator toInstantiator(Project project) {
return toProjectInternal(project).getServices().get(Instantiator.class);
}
public static ProjectInternal toProjectInternal(Project project) {
return ((ProjectInternal)project);
}
public static FileResolver toFileResolver(Project project) {
return toProjectInternal(project).getFileResolver();
}
}