Interface MinecraftRepositoryExtension

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.gradle.api.provider.Property<java.lang.Boolean> injectRepositories()
      Get whether repositories should be injected into the build.
      void injectRepositories​(boolean injectRepositories)
      Set whether standard repositories should be added to the project.
      java.lang.String injectVersion​(java.io.File file)
      Inject a version from the provided file
      java.lang.String injectVersion​(java.lang.String file)
      Inject a version from the provided file
    • Method Detail

      • injectRepositories

        org.gradle.api.provider.Property<java.lang.Boolean> injectRepositories()
        Get whether repositories should be injected into the build.

        For users who run their own proxying repositories or who want to manage repositories in another way, this property can be disabled. However, to function VanillaGradle must be able to resolve artifacts that are present in the following repositories:

        This list is subject to change in any feature release without that release being marked as "breaking".

        Returns:
        the inject repositories property
      • injectRepositories

        void injectRepositories​(boolean injectRepositories)
        Set whether standard repositories should be added to the project.
        Parameters:
        injectRepositories - whether repositories should be injected
        See Also:
        for a list of repositories that are injected
      • injectVersion

        java.lang.String injectVersion​(java.lang.String file)
        Inject a version from the provided file

        This allows building against Minecraft versions that may not be available in the ordinary version list, such as combat snapshots.

        This will override whatever data may be present in the manifest repository

        Parameters:
        file - a path relative to the root directory
        Returns:
        the ID of the injected version
      • injectVersion

        java.lang.String injectVersion​(java.io.File file)
        Inject a version from the provided file

        This allows building against Minecraft versions that may not be available in the ordinary version list, such as combat snapshots.

        This will override whatever data may be present in the manifest repository

        Parameters:
        file - a file to load
        Returns:
        the ID of the injected version