Class MinecraftRepositoryExtensionImpl

    • Method Summary

      All Methods Instance Methods Concrete 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 version)
      Inject a version from the provided file
      java.lang.String injectVersion​(java.lang.String version)
      Inject a version from the provided file
      • Methods inherited from class java.lang.Object

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

      • MinecraftRepositoryExtensionImpl

        @Inject
        public MinecraftRepositoryExtensionImpl​(org.gradle.api.model.ObjectFactory objects)
    • Method Detail

      • injectRepositories

        public org.gradle.api.provider.Property<java.lang.Boolean> injectRepositories()
        Description copied from interface: MinecraftRepositoryExtension
        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".

        Specified by:
        injectRepositories in interface MinecraftRepositoryExtension
        Returns:
        the inject repositories property
      • injectVersion

        public java.lang.String injectVersion​(java.lang.String version)
        Description copied from interface: MinecraftRepositoryExtension
        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

        Specified by:
        injectVersion in interface MinecraftRepositoryExtension
        Parameters:
        version - a path relative to the root directory
        Returns:
        the ID of the injected version
      • injectVersion

        public java.lang.String injectVersion​(java.io.File version)
        Description copied from interface: MinecraftRepositoryExtension
        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

        Specified by:
        injectVersion in interface MinecraftRepositoryExtension
        Parameters:
        version - a file to load
        Returns:
        the ID of the injected version