Package com.hivemq.testcontainer.core
Class GradleHiveMQExtensionSupplier
- java.lang.Object
-
- com.hivemq.testcontainer.core.GradleHiveMQExtensionSupplier
-
- All Implemented Interfaces:
java.util.function.Supplier<java.io.File>
public class GradleHiveMQExtensionSupplier extends java.lang.Object implements java.util.function.Supplier<java.io.File>This class automates the process of packaging a HiveMQ extension from a gradle project. It uses ./gradlew on MacOS and Linux and uses gradlew.bat on Windows to execute the gradle task.- Since:
- 1.3.0
-
-
Constructor Summary
Constructors Constructor Description GradleHiveMQExtensionSupplier(@NotNull java.io.File gradleProjectDirectory)Creates a Gradle HiveMQ extensionSupplier.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull GradleHiveMQExtensionSupplierdirect()ThisSuppliercan be used if the current gradle project is the HiveMQ Extension to supply.@NotNull java.io.Fileget()Packages the HiveMQ extension, copies it to a temporary directory and returns the directory as aFile.@NotNull GradleHiveMQExtensionSupplierquiet()Suppress stdout of the gradle build.
-
-
-
Constructor Detail
-
GradleHiveMQExtensionSupplier
public GradleHiveMQExtensionSupplier(@NotNull @NotNull java.io.File gradleProjectDirectory)Creates a Gradle HiveMQ extensionSupplier. It uses the gradle wrapper of the gradle project associated with the given It uses the build.gradle file.- Parameters:
gradleProjectDirectory- the gradle project directory of the HiveMQ extension to supply.- Since:
- 1.3.0
-
-
Method Detail
-
direct
@NotNull public static @NotNull GradleHiveMQExtensionSupplier direct()
ThisSuppliercan be used if the current gradle project is the HiveMQ Extension to supply. It uses the build.gradle file and the gradle wrapper of the current gradle project.- Returns:
- a
GradleHiveMQExtensionSupplierfor the current gradle project - Since:
- 1.3.0
-
get
@NotNull public @NotNull java.io.File get()
Packages the HiveMQ extension, copies it to a temporary directory and returns the directory as aFile.- Specified by:
getin interfacejava.util.function.Supplier<java.io.File>- Returns:
- the
Fileof the packaged HiveMQ extension - Since:
- 1.3.0
-
quiet
@NotNull public @NotNull GradleHiveMQExtensionSupplier quiet()
Suppress stdout of the gradle build.- Returns:
- self
- Since:
- 1.3.0
-
-