Class 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 extension Supplier.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static @NotNull GradleHiveMQExtensionSupplier direct()
      This Supplier can be used if the current gradle project is the HiveMQ Extension to supply.
      @NotNull java.io.File get()
      Packages the HiveMQ extension, copies it to a temporary directory and returns the directory as a File.
      @NotNull GradleHiveMQExtensionSupplier quiet()
      Suppress stdout of the gradle build.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GradleHiveMQExtensionSupplier

        public GradleHiveMQExtensionSupplier​(@NotNull
                                             @NotNull java.io.File gradleProjectDirectory)
        Creates a Gradle HiveMQ extension Supplier. 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()
        This Supplier can 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 GradleHiveMQExtensionSupplier for 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 a File.
        Specified by:
        get in interface java.util.function.Supplier<java.io.File>
        Returns:
        the File of the packaged HiveMQ extension
        Since:
        1.3.0