Package com.hivemq.testcontainer.core
Class GradleHiveMQExtensionSupplier
- java.lang.Object
-
- com.hivemq.testcontainer.core.GradleHiveMQExtensionSupplier
-
- All Implemented Interfaces:
Supplier<MountableFile>
public class GradleHiveMQExtensionSupplier extends Object implements Supplier<MountableFile>
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 File gradleProjectDirectory)Creates a Gradle HiveMQ extensionSupplier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull MountableFileget()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 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
-
get
@NotNull public @NotNull MountableFile get()
Packages the HiveMQ extension, copies it to a temporary directory and returns the directory as aFile.- Specified by:
getin interfaceSupplier<MountableFile>- 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
-
-