Interface PomUtils
public sealed interface PomUtils
Contains utilities to make working with POMs more ergonomic.
This can be accessed 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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRemoteDetails(org.gradle.api.publish.maven.MavenPom pom) Adds details from the project's remote URL to the given POM.voidaddRemoteDetails(org.gradle.api.publish.maven.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
static final Map<String, org.gradle.api.Action<? super org.gradle.api.publish.maven.MavenPomDeveloper>> developersContains several developers within the MinecraftForge organization to reduce needing to manually write them out in each project they contribute to.
If a queried developer does not exist, it is automatically created with the input which is set to the ID and name.
-
-
Method Details
-
getLicenses
PomUtils.Licenses getLicenses()Allows accessing licenses from buildscripts usinggradleutils.pom.licenses.- Returns:
- A reference to the licenses
- See Also:
-
addRemoteDetails
void addRemoteDetails(org.gradle.api.publish.maven.MavenPom pom) 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.
-