Class GenerateChangelog

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
org.gradle.api.tasks.JavaExec
net.minecraftforge.gradleutils.shared.ToolExecBase<net.minecraftforge.gitversion.gradle.changelog.ChangelogProblems>
net.minecraftforge.gitversion.gradle.changelog.GenerateChangelog
All Implemented Interfaces:
Comparable<Task>, net.minecraftforge.gradleutils.shared.EnhancedTask, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, BaseExecSpec, JavaExecSpec, JavaForkOptions, ProcessForkOptions, Configurable<Task>

public abstract class GenerateChangelog extends net.minecraftforge.gradleutils.shared.ToolExecBase<net.minecraftforge.gitversion.gradle.changelog.ChangelogProblems> implements net.minecraftforge.gradleutils.shared.EnhancedTask
Generates a changelog for the project based on the Git history using Git Version.
  • Field Details

  • Constructor Details

    • GenerateChangelog

      @Inject public GenerateChangelog()
      Constructs a new task instance.
  • Method Details

    • pluginType

      public Class<? extends net.minecraftforge.gradleutils.shared.EnhancedPlugin<? super Project>> pluginType()
      Specified by:
      pluginType in interface net.minecraftforge.gradleutils.shared.EnhancedTask
    • getOutputFile

      @OutputFile public abstract RegularFileProperty getOutputFile()
      The output file for the changelog.
      Returns:
      A property for the output file
    • getProjectPath

      @Input protected abstract Property<String> getProjectPath()

      The absolute path to the current project.

      Used to configure Git Version without needing to specify the directory itself, since using the directory itself can cause implicit dependencies on other tasks that use actually it.

      Returns:
      A property for the project path
    • getStart

      @Input @Optional public abstract Property<String> getStart()
      The tag (or object ID) to start the changelog from.
      Returns:
      A property for the start tag
    • getProjectUrl

      @Input @Optional public abstract Property<String> getProjectUrl()

      The project URL to use in the changelog.

      Git Version will automatically attempt to find a URL from the repository's remote details if left unspecified.

      Returns:
      A property for the project URL
    • getBuildMarkdown

      @Input public abstract Property<Boolean> getBuildMarkdown()
      Whether to build the changelog in Markdown format.
      Returns:
      A property for Markdown formatting
    • addArguments

      protected void addArguments()
      Overrides:
      addArguments in class net.minecraftforge.gradleutils.shared.ToolExecBase<net.minecraftforge.gitversion.gradle.changelog.ChangelogProblems>
    • exec

      public void exec()
      Overrides:
      exec in class net.minecraftforge.gradleutils.shared.ToolExecBase<net.minecraftforge.gitversion.gradle.changelog.ChangelogProblems>