Interface Project
- All Known Subinterfaces:
FileProject,JavaProject,KotlinProject
public interface Project
The base Project interface which defines the
clean build target
and provides functionality to track source file dependencies,
control the build process and handle command-line options.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclean()Thecleanbuild target.default BuildContextcontext()Gets the current build contextdefault <T> Supplier<T> currently(T val) Wraps a value in a non-serializableSupplier.static <T> voidExecutes a project usingBuildController.executeBuild(Consumer, String[])
-
Method Details
-
currently
-
context
-
clean
default void clean()Thecleanbuild target. Empties the result cache and deletes the cache file, if it exists -
run
Executes a project usingBuildController.executeBuild(Consumer, String[])- Type Parameters:
T- the project type- Parameters:
t- the project interface referencefn- a consumer that calls the default build methodargs- command line arguments
-