Class MinecraftRepositoryExtensionImpl
- java.lang.Object
-
- org.spongepowered.gradle.vanilla.internal.repository.MinecraftRepositoryExtensionImpl
-
- All Implemented Interfaces:
MinecraftRepositoryExtension
public class MinecraftRepositoryExtensionImpl extends java.lang.Object implements MinecraftRepositoryExtension
-
-
Constructor Summary
Constructors Constructor Description MinecraftRepositoryExtensionImpl(org.gradle.api.model.ObjectFactory objects)
-
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.voidinjectRepositories(boolean injectRepositories)Set whether standard repositories should be added to the project.java.lang.StringinjectVersion(java.io.File version)Inject a version from the provided filejava.lang.StringinjectVersion(java.lang.String version)Inject a version from the provided file
-
-
-
Method Detail
-
injectRepositories
public org.gradle.api.provider.Property<java.lang.Boolean> injectRepositories()
Description copied from interface:MinecraftRepositoryExtensionGet 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:
injectRepositoriesin interfaceMinecraftRepositoryExtension- Returns:
- the inject repositories property
-
injectRepositories
public void injectRepositories(boolean injectRepositories)
Description copied from interface:MinecraftRepositoryExtensionSet whether standard repositories should be added to the project.- Specified by:
injectRepositoriesin interfaceMinecraftRepositoryExtension- Parameters:
injectRepositories- whether repositories should be injected- See Also:
for a list of repositories that are injected
-
injectVersion
public java.lang.String injectVersion(java.lang.String version)
Description copied from interface:MinecraftRepositoryExtensionInject a version from the provided fileThis 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:
injectVersionin interfaceMinecraftRepositoryExtension- 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:MinecraftRepositoryExtensionInject a version from the provided fileThis 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:
injectVersionin interfaceMinecraftRepositoryExtension- Parameters:
version- a file to load- Returns:
- the ID of the injected version
-
-