Interface PomUtils
public sealed interface PomUtils
Contains utilities to make working with POMs more ergonomic.
This can be accessed by projects using the
gradleutils extension.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContains several licenses used by MinecraftForge to reduce needing to manually write them out in each project that uses one. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<String, Action<? super MavenPomDeveloper>> Contains several developers within the MinecraftForge organization to reduce needing to manually write them out in each project they contribute to. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRemoteDetails(MavenPom pom) Adds details from the project's remote URL to the given POM.voidaddRemoteDetails(MavenPom pom, String url) Adds details from the given remote URL to the given POM.Allows accessing licenses from buildscripts usinggradleutils.pom.licenses.
-
Field Details
-
developers
-
-
Method Details
-
getLicenses
PomUtils.Licenses getLicenses()Allows accessing licenses from buildscripts usinggradleutils.pom.licenses.- Returns:
- A reference to the licenses
- See Also:
-
addRemoteDetails
Adds details from the project's remote URL to the given POM.- Parameters:
pom- The POM to add details to- API Note:
- If the project does not have the
net.minecraftforge.gitversionplugin applied, this method will fail. If you are not using Git Version, manually specify your project's URL usingaddRemoteDetails(MavenPom,String).
-
addRemoteDetails
Adds details from the given remote URL to the given POM.- Parameters:
pom- The pom to add details tourl- The URL of the repository- API Note:
- If you are using the
net.minecraftforge.gitversionplugin, you can useaddRemoteDetails(MavenPom)to use the URL discovered by Git Version instead of specifying it manually.
-