Package net.fabricmc.loom.extension
Class LoomGradleExtensionApiImpl
java.lang.Object
net.fabricmc.loom.extension.LoomGradleExtensionApiImpl
- All Implemented Interfaces:
LoomGradleExtensionAPI
- Direct Known Subclasses:
LoomGradleExtensionImpl
This class implements the public extension api.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.gradle.api.file.RegularFilePropertyprotected org.gradle.api.provider.Property<String>protected org.gradle.api.provider.ListProperty<LoomDecompiler>protected DeprecationHelperprotected org.gradle.api.provider.ListProperty<JarProcessor>protected org.gradle.api.file.ConfigurableFileCollectionprotected org.gradle.api.provider.Property<Boolean>protected org.gradle.api.provider.Property<Boolean>protected org.gradle.api.provider.Property<Boolean>protected org.gradle.api.provider.Property<Boolean> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLoomGradleExtensionApiImpl(org.gradle.api.Project project, LoomFiles directories) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisableDeprecatedPomGeneration(org.gradle.api.publish.maven.MavenPublication publication)Disables the deprecated POM generation for a publication.org.gradle.api.file.RegularFilePropertyorg.gradle.api.provider.Property<String>org.gradle.api.provider.Property<Boolean>When true loom will apply transitive access wideners from compile dependencies.protected abstract LoomFilesgetFiles()org.gradle.api.provider.ListProperty<LoomDecompiler>org.gradle.api.provider.ListProperty<JarProcessor>org.gradle.api.file.ConfigurableFileCollectionReads the mod version from the fabric.mod.json file located in the main sourcesets resources.protected abstract org.gradle.api.Projectorg.gradle.api.provider.Property<Boolean>org.gradle.api.NamedDomainObjectContainer<RunConfigSettings>org.gradle.api.provider.Property<Boolean>If true, Loom will replace the-devjars in the*Elementsconfigurations with remapped outgoing variants.org.gradle.api.provider.Property<Boolean>org.gradle.api.artifacts.Dependencylayered(org.gradle.api.Action<LayeredMappingSpecBuilder> action)voidmixin(org.gradle.api.Action<MixinExtensionAPI> action)voidruns(org.gradle.api.Action<org.gradle.api.NamedDomainObjectContainer<RunConfigSettings>> action)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.fabricmc.loom.api.LoomGradleExtensionAPI
addDecompiler, addJarProcessor, getAccessWidener, getCustomManifest, getDecompilers, getJarProcessors, getMixin, getRefmapName, isRemapMod, isShareCaches, officialMojangMappings, setAccessWidener, setCustomManifest, setRefmapName, setRemapMod, setShareCaches, shareCaches
-
Field Details
-
deprecationHelper
-
decompilers
-
jarProcessors
-
log4jConfigs
protected final org.gradle.api.file.ConfigurableFileCollection log4jConfigs -
accessWidener
protected final org.gradle.api.file.RegularFileProperty accessWidener -
remapArchives
-
customManifest
-
setupRemappedVariants
-
transitiveAccessWideners
-
-
Constructor Details
-
LoomGradleExtensionApiImpl
-
-
Method Details
-
getDeprecationHelper
- Specified by:
getDeprecationHelperin interfaceLoomGradleExtensionAPI
-
getAccessWidenerPath
public org.gradle.api.file.RegularFileProperty getAccessWidenerPath()- Specified by:
getAccessWidenerPathin interfaceLoomGradleExtensionAPI
-
getGameDecompilers
- Specified by:
getGameDecompilersin interfaceLoomGradleExtensionAPI
-
getGameJarProcessors
- Specified by:
getGameJarProcessorsin interfaceLoomGradleExtensionAPI
-
layered
public org.gradle.api.artifacts.Dependency layered(org.gradle.api.Action<LayeredMappingSpecBuilder> action)- Specified by:
layeredin interfaceLoomGradleExtensionAPI
-
getRemapArchives
- Specified by:
getRemapArchivesin interfaceLoomGradleExtensionAPI
-
runs
public void runs(org.gradle.api.Action<org.gradle.api.NamedDomainObjectContainer<RunConfigSettings>> action)- Specified by:
runsin interfaceLoomGradleExtensionAPI
-
getRunConfigs
- Specified by:
getRunConfigsin interfaceLoomGradleExtensionAPI
-
getLog4jConfigs
public org.gradle.api.file.ConfigurableFileCollection getLog4jConfigs()- Specified by:
getLog4jConfigsin interfaceLoomGradleExtensionAPI
-
mixin
- Specified by:
mixinin interfaceLoomGradleExtensionAPI
-
getCustomMinecraftManifest
- Specified by:
getCustomMinecraftManifestin interfaceLoomGradleExtensionAPI
-
getSetupRemappedVariants
Description copied from interface:LoomGradleExtensionAPIIf true, Loom will replace the-devjars in the*Elementsconfigurations with remapped outgoing variants.Will only apply if
LoomGradleExtensionAPI.getRemapArchives()is also true.- Specified by:
getSetupRemappedVariantsin interfaceLoomGradleExtensionAPI- Returns:
- the property controlling the setup of remapped variants
-
getModVersion
Description copied from interface:LoomGradleExtensionAPIReads the mod version from the fabric.mod.json file located in the main sourcesets resources. This is useful if you want to set the gradle version based of the version in the fabric.mod.json file.- Specified by:
getModVersionin interfaceLoomGradleExtensionAPI- Returns:
- the version defined in the fabric.mod.json
-
getEnableTransitiveAccessWideners
Description copied from interface:LoomGradleExtensionAPIWhen true loom will apply transitive access wideners from compile dependencies.- Specified by:
getEnableTransitiveAccessWidenersin interfaceLoomGradleExtensionAPI- Returns:
- the property controlling the transitive access wideners
-
getProject
protected abstract org.gradle.api.Project getProject() -
getFiles
-
disableDeprecatedPomGeneration
public void disableDeprecatedPomGeneration(org.gradle.api.publish.maven.MavenPublication publication)Description copied from interface:LoomGradleExtensionAPIDisables the deprecated POM generation for a publication. This is useful if you want to suppress deprecation warnings when you're not using software components.Experimental API: Will be removed in Loom 0.12 together with the deprecated POM generation functionality.
- Specified by:
disableDeprecatedPomGenerationin interfaceLoomGradleExtensionAPI- Parameters:
publication- the maven publication
-