Interface GradleUtilsExtension.ForProject
- All Superinterfaces:
GradleUtilsExtension
- Enclosing interface:
GradleUtilsExtension
The GradleUtils extension for projects, which include additional utilities that are only available for them.
When applied, GradleUtils will
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraftforge.gradleutils.GradleUtilsExtension
GradleUtilsExtension.ForProject -
Field Summary
Fields inherited from interface net.minecraftforge.gradleutils.GradleUtilsExtension
forgeMaven, forgeReleaseMaven, minecraftLibsMaven, NAME -
Method Summary
Modifier and TypeMethodDescriptiongetPom()Utilities for working with aMavenPomfor publishing artifacts.default ClosureGet a configuring closure to be passed intoRepositoryHandler.maven(Closure)in a publishing block.getPublishingForgeMaven(String fallbackPublishingEndpoint) Get a configuring closure to be passed intoRepositoryHandler.maven(Closure)in a publishing block.default ClosuregetPublishingForgeMaven(String fallbackPublishingEndpoint, File defaultFolder) Get a configuring closure to be passed intoRepositoryHandler.maven(Closure)in a publishing block.getPublishingForgeMaven(String fallbackPublishingEndpoint, File defaultFolder, File defaultSnapshotFolder) Get a configuring closure to be passed intoRepositoryHandler.maven(Closure)in a publishing block.
-
Method Details
-
getPom
PomUtils getPom()Utilities for working with aMavenPomfor publishing artifacts.- Returns:
- The POM utilities
- See Also:
-
getPublishingForgeMaven
Get a configuring closure to be passed into
RepositoryHandler.maven(Closure)in a publishing block.This closure respects the current project's version in regard to publishing to a release or snapshot repository.
Important: The following environment variables must be set for this to work:
MAVEN_USER: Containing the username to use for authenticationMAVEN_PASSWORD: Containing the password to use for authentication
The following environment variables are optional:
MAVEN_URL_RELEASE: Containing the URL to use for the release repositoryMAVEN_URL_SNAPSHOT: Containing the URL to use for the snapshot repository
If the required environment variables are not present, the output Maven will be a local folder named
repoon the root of the project directory.If the
MAVEN_URL_RELEASEvariable is not set, the Forge releases repository will be used (https://maven.minecraftforge.net/releases).- Returns:
- The closure
-
getPublishingForgeMaven
Get a configuring closure to be passed into
RepositoryHandler.maven(Closure)in a publishing block.This closure respects the current project's version in regard to publishing to a release or snapshot repository.
Important: The following environment variables must be set for this to work:
MAVEN_USER: Containing the username to use for authenticationMAVEN_PASSWORD: Containing the password to use for authentication
The following environment variables are optional:
MAVEN_URL_RELEASE: Containing the URL to use for the release repositoryMAVEN_URL_SNAPSHOT: Containing the URL to use for the snapshot repository
If the required environment variables are not present, the output Maven will be a local folder named
repoon the root of the project directory.If the
MAVEN_URL_RELEASEvariable is not set, the passed in fallback URL will be used for the release repository.- Parameters:
fallbackPublishingEndpoint- The fallback URL for the release repository- Returns:
- The closure
-
getPublishingForgeMaven
Get a configuring closure to be passed into
RepositoryHandler.maven(Closure)in a publishing block.This closure respects the current project's version in regard to publishing to a release or snapshot repository.
Important: The following environment variables must be set for this to work:
MAVEN_USER: Containing the username to use for authenticationMAVEN_PASSWORD: Containing the password to use for authentication
The following environment variables are optional:
MAVEN_URL_RELEASE: Containing the URL to use for the release repositoryMAVEN_URL_SNAPSHOT: Containing the URL to use for the snapshot repository
If the required environment variables are not present, the output Maven will be set to the given default folder.
If the
MAVEN_URL_RELEASEvariable is not set, the passed in fallback URL will be used for the release repository.- Parameters:
fallbackPublishingEndpoint- The fallback URL for the release repositorydefaultFolder- The default folder if the required maven information is not set- Returns:
- The closure
-
getPublishingForgeMaven
Closure getPublishingForgeMaven(String fallbackPublishingEndpoint, File defaultFolder, File defaultSnapshotFolder) Get a configuring closure to be passed into
RepositoryHandler.maven(Closure)in a publishing block.This closure respects the current project's version in regard to publishing to a release or snapshot repository.
Important: The following environment variables must be set for this to work:
MAVEN_USER: Containing the username to use for authenticationMAVEN_PASSWORD: Containing the password to use for authentication
The following environment variables are optional:
MAVEN_URL_RELEASE: Containing the URL to use for the release repositoryMAVEN_URL_SNAPSHOT: Containing the URL to use for the snapshot repository
If the required environment variables are not present, the output Maven will be set to the given default folder.
If the
MAVEN_URL_RELEASEvariable is not set, the passed in fallback URL will be used for the release repository.- Parameters:
fallbackPublishingEndpoint- The fallback URL for the release repositorydefaultFolder- The default folder if the required maven information is not setdefaultSnapshotFolder- The default folder for the snapshot repository if the required maven information is not set- Returns:
- The closure
-