Enum Class BuildTool

java.lang.Object
java.lang.Enum<BuildTool>
io.quarkus.devtools.project.BuildTool
All Implemented Interfaces:
Serializable, Comparable<BuildTool>, Constable

public enum BuildTool extends Enum<BuildTool>
An enum of build tools, such as Maven and Gradle.
  • Enum Constant Details

    • MAVEN

      public static final BuildTool MAVEN
      Maven build tool
    • GRADLE

      public static final BuildTool GRADLE
      Gradle build tool
    • GRADLE_KOTLIN_DSL

      public static final BuildTool GRADLE_KOTLIN_DSL
      Gradle build tool with Kotlin DSL
    • JBANG

      public static final BuildTool JBANG
      JBang build tool
  • Method Details

    • values

      public static BuildTool[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BuildTool valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isAnyGradle

      public boolean isAnyGradle()
    • getGitIgnoreEntries

      public String getGitIgnoreEntries()
      Returns:
      \n-separated lines to add to a .gitignore file
    • getBuildFiles

      public String[] getBuildFiles()
    • getDependenciesFile

      public String getDependenciesFile()
    • getBuildDirectory

      public String getBuildDirectory()
    • createExtensionManager

      public ExtensionManager createExtensionManager(Path projectDirPath, io.quarkus.registry.catalog.ExtensionCatalog catalog)
    • getKey

      public String getKey()
    • fromProject

      public static BuildTool fromProject(Path projectDirPath)
      Determine the build tool from the contents of an existing project (pom.xml, build.gradle.kts, build.gradle, etc.)
      Parameters:
      projectDirPath - The Path to an existing project
      Returns:
      the BuildTool enumeration matched from filesystem content or null;
    • findTool

      public static BuildTool findTool(String tool)