Interface GradleUtilsExtension
- All Known Subinterfaces:
GradleUtilsExtensionForProject
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Action<MavenArtifactRepository> A closure for the Forge maven to be passed intoRepositoryHandler.maven(Closure).static final Action<MavenArtifactRepository> A closure for the Forge releases maven to be passed intoRepositoryHandler.maven(Closure).static final Action<MavenArtifactRepository> A closure for the Minecraft libraries maven to be passed intoRepositoryHandler.maven(Closure).static final StringThe name for this extension. -
Method Summary
Modifier and TypeMethodDescriptiongetPom()Utilities for working with aMavenPomfor publishing artifacts.default Action<MavenArtifactRepository> Get a configuring closure to be passed intoRepositoryHandler.maven(Closure)in a publishing block.default Action<MavenArtifactRepository> getPublishingForgeMaven(File defaultFolder) Get 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.getPublishingForgeMaven(String fallbackPublishingEndpoint, File defaultFolder) Get a configuring closure to be passed intoRepositoryHandler.maven(Closure)in a publishing block.getPublishingForgeMaven(String fallbackPublishingEndpoint, Object defaultFolder) Get a configuring closure to be passed intoRepositoryHandler.maven(Closure)in a publishing block.getPublishingForgeMaven(String fallbackPublishingEndpoint, Directory defaultFolder) Get a configuring closure to be passed intoRepositoryHandler.maven(Closure)in a publishing block.getPublishingForgeMaven(String fallbackPublishingEndpoint, Provider<?> defaultFolder) Get a configuring closure to be passed intoRepositoryHandler.maven(Closure)in a publishing block.default Action<MavenArtifactRepository> getPublishingForgeMaven(Directory defaultFolder) Get a configuring closure to be passed intoRepositoryHandler.maven(Closure)in a publishing block.default Action<MavenArtifactRepository> getPublishingForgeMaven(Provider<?> defaultFolder) Get a configuring closure to be passed intoRepositoryHandler.maven(Closure)in a publishing block.
-
Field Details
-
NAME
-
forgeMaven
A closure for the Forge maven to be passed intoRepositoryHandler.maven(Closure).repositories { maven fg.forgeMaven } -
forgeReleaseMaven
A closure for the Forge releases maven to be passed intoRepositoryHandler.maven(Closure).repositories { maven fg.forgeReleaseMaven }- See Also:
-
minecraftLibsMaven
A closure for the Minecraft libraries maven to be passed intoRepositoryHandler.maven(Closure).repositories { maven fg.minecraftLibsMaven }
-
-
Method Details
-
getPublishingForgeMaven
Get a configuring closure to be passed into
RepositoryHandler.maven(Closure)in a publishing block.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 repository- Please note that since Forge does not have a snapshot repository, snapshot maven publishing via GradleUtils is no longer supported as of 3.0.0.
If the required environment variables are not present, the output Maven will be a local folder named
repoon the root of the build 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.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 repository- Please note that since Forge does not have a snapshot repository, snapshot maven publishing via GradleUtils is no longer supported as of 3.0.0.
If the required environment variables are not present, the output Maven will be a local folder named
repoon the root of the build 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
Action<MavenArtifactRepository> getPublishingForgeMaven(String fallbackPublishingEndpoint, Object defaultFolder) Get a configuring closure to be passed into
RepositoryHandler.maven(Closure)in a publishing block. 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 repository- Please note that since Forge does not have a snapshot repository, snapshot maven publishing via GradleUtils is no longer supported as of 3.0.0.
If the required environment variables are not present, the output Maven will be set to the given default folder.
If the
MAVEN_URL(_RELEASE)variable 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
Get a configuring closure to be passed into
RepositoryHandler.maven(Closure)in a publishing block.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 repository- Please note that since Forge does not have a snapshot repository, snapshot maven publishing via GradleUtils is no longer supported as of 3.0.0.
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 Forge releases repository will be used (https://maven.minecraftforge.net/releases).- Parameters:
defaultFolder- The default folder if the required maven information is not set- Returns:
- The closure
-
getPublishingForgeMaven
Action<MavenArtifactRepository> getPublishingForgeMaven(String fallbackPublishingEndpoint, File defaultFolder) Get a configuring closure to be passed into
RepositoryHandler.maven(Closure)in a publishing block. 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 repository- Please note that since Forge does not have a snapshot repository, snapshot maven publishing via GradleUtils is no longer supported as of 3.0.0.
If the required environment variables are not present, the output Maven will be set to the given default folder.
If the
MAVEN_URL(_RELEASE)variable 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
Get a configuring closure to be passed into
RepositoryHandler.maven(Closure)in a publishing block.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 repository- Please note that since Forge does not have a snapshot repository, snapshot maven publishing via GradleUtils is no longer supported as of 3.0.0.
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 Forge releases repository will be used (https://maven.minecraftforge.net/releases).- Parameters:
defaultFolder- The default folder if the required maven information is not set- Returns:
- The closure
-
getPublishingForgeMaven
Action<MavenArtifactRepository> getPublishingForgeMaven(String fallbackPublishingEndpoint, Directory defaultFolder) Get a configuring closure to be passed into
RepositoryHandler.maven(Closure)in a publishing block. 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 repository- Please note that since Forge does not have a snapshot repository, snapshot maven publishing via GradleUtils is no longer supported as of 3.0.0.
If the required environment variables are not present, the output Maven will be set to the given default folder.
If the
MAVEN_URL(_RELEASE)variable 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
Get a configuring closure to be passed into
RepositoryHandler.maven(Closure)in a publishing block.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 repository- Please note that since Forge does not have a snapshot repository, snapshot maven publishing via GradleUtils is no longer supported as of 3.0.0.
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 Forge releases repository will be used (https://maven.minecraftforge.net/releases).- Parameters:
defaultFolder- The default folder if the required maven information is not set- Returns:
- The closure
-
getPublishingForgeMaven
Action<MavenArtifactRepository> getPublishingForgeMaven(String fallbackPublishingEndpoint, Provider<?> defaultFolder) Get a configuring closure to be passed into
RepositoryHandler.maven(Closure)in a publishing block. 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 repository- Please note that since Forge does not have a snapshot repository, snapshot maven publishing via GradleUtils is no longer supported as of 3.0.0.
If the required environment variables are not present, the output Maven will be set to the given default folder.
If the
MAVEN_URL(_RELEASE)variable 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
-
getPom
-