Class IvyModuleWriter
- java.lang.Object
-
- org.spongepowered.gradle.vanilla.internal.repository.IvyModuleWriter
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public final class IvyModuleWriter extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_JAVA_VERSIONAn extra property, optional, that indicates the Java version a certain Minecraft version was built against.static java.lang.StringPROPERTY_MOJANG_STATUSThe actual status provided for the artifact in Mojang metadata.
-
Constructor Summary
Constructors Constructor Description IvyModuleWriter(java.io.Writer output)IvyModuleWriter(java.nio.file.Path target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()IvyModuleWriterdependencies(java.util.Collection<GroupArtifactVersion> dependencies)IvyModuleWriterdependencies(GroupArtifactVersion... dependencies)IvyModuleWriteroverrideArtifactId(java.lang.String artifactId)voidwrite(VersionDescriptor.Full descriptor, MinecraftPlatform platform)
-
-
-
Field Detail
-
PROPERTY_JAVA_VERSION
public static final java.lang.String PROPERTY_JAVA_VERSION
An extra property, optional, that indicates the Java version a certain Minecraft version was built against.- See Also:
- Constant Field Values
-
PROPERTY_MOJANG_STATUS
public static final java.lang.String PROPERTY_MOJANG_STATUS
The actual status provided for the artifact in Mojang metadata.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IvyModuleWriter
public IvyModuleWriter(java.io.Writer output) throws javax.xml.stream.XMLStreamException- Throws:
javax.xml.stream.XMLStreamException
-
IvyModuleWriter
public IvyModuleWriter(java.nio.file.Path target) throws java.io.IOException, javax.xml.stream.XMLStreamException- Throws:
java.io.IOExceptionjavax.xml.stream.XMLStreamException
-
-
Method Detail
-
overrideArtifactId
public IvyModuleWriter overrideArtifactId(java.lang.String artifactId)
-
dependencies
public IvyModuleWriter dependencies(GroupArtifactVersion... dependencies)
-
dependencies
public IvyModuleWriter dependencies(java.util.Collection<GroupArtifactVersion> dependencies)
-
write
public void write(VersionDescriptor.Full descriptor, MinecraftPlatform platform) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
close
public void close() throws java.io.IOException, javax.xml.stream.XMLStreamException- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOExceptionjavax.xml.stream.XMLStreamException
-
-