Interface MavenizerInstance

All Superinterfaces:
org.gradle.api.provider.ProviderConvertible<org.gradle.api.artifacts.ExternalModuleDependency>

public interface MavenizerInstance extends org.gradle.api.provider.ProviderConvertible<org.gradle.api.artifacts.ExternalModuleDependency>

A Mavenizer instance is an abstraction over an invocation of the Minecraft Mavenizer and its output when generating a Minecraft dependency. This is designed to be consumed by one of the various MinecraftExtensionForProject.dependency(Object, Closure) methods as it is a ProviderConvertible of a dependency.

This is not to be confused with MinecraftDependency, which is designed to add additional DSL features on top of ExternalModuleDependency when configuring a Minecraft dependency in your buildscript.

  • Method Summary

    Modifier and Type
    Method
    Description
    org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency>
    Gets the dependency (used by Gradle) generated by the Mavenizer instance.
    org.gradle.api.provider.Provider<String>
    Gets the mappings version used by the Mavenizer instance.
    org.gradle.api.provider.Provider<String>
    Gets the artifact coordinates for the SRG mappings used by the Mavenizer instance.
    org.gradle.api.provider.Provider<File>
    Gets the notch mapping file used by the Mavenizer instance.
    org.gradle.api.provider.Provider<String>
    Gets the artifact coordinates for the SRG mappings used by the Mavenizer instance.
    org.gradle.api.provider.Provider<File>
    Gets the SRG mapping file used by the Mavenizer instance.
  • Method Details

    • asProvider

      org.gradle.api.provider.Provider<org.gradle.api.artifacts.ExternalModuleDependency> asProvider()
      Gets the dependency (used by Gradle) generated by the Mavenizer instance.
      Specified by:
      asProvider in interface org.gradle.api.provider.ProviderConvertible<org.gradle.api.artifacts.ExternalModuleDependency>
      Returns:
      The dependency generated by this instance
    • getMappingVersion

      org.gradle.api.provider.Provider<String> getMappingVersion()
      Gets the mappings version used by the Mavenizer instance.
      Returns:
      The mappings version used
      See Also:
    • getToSrg

      org.gradle.api.provider.Provider<String> getToSrg()
      Gets the artifact coordinates for the SRG mappings used by the Mavenizer instance.
      Returns:
      The SRG mapping artifact coordinate
    • getToSrgFile

      org.gradle.api.provider.Provider<File> getToSrgFile()
      Gets the SRG mapping file used by the Mavenizer instance.
      Returns:
      The SRG mapping file
      API Note:
      Buildscript authors should prefer to use getToSrg() with DependencyFactory.create(CharSequence) or DependencyHandler.addProvider(String, Provider).
    • getToObf

      org.gradle.api.provider.Provider<String> getToObf()
      Gets the artifact coordinates for the SRG mappings used by the Mavenizer instance.
      Returns:
      The SRG mapping artifact coordinate
    • getToObfFile

      org.gradle.api.provider.Provider<File> getToObfFile()
      Gets the notch mapping file used by the Mavenizer instance.
      Returns:
      The notch mapping file
      API Note:
      Buildscript authors should prefer to use getToObf() with DependencyFactory.create(CharSequence) or DependencyHandler.addProvider(String, Provider).