Package org.openrewrite.gradle.util
Class GradleWrapper
java.lang.Object
org.openrewrite.gradle.util.GradleWrapper
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GradleWrappercreate(@Nullable String distributionTypeName, @Nullable String version, @Nullable String repositoryUrl, org.openrewrite.ExecutionContext ctx) static GradleWrapperConstruct a Gradle wrapper from a URI.@Nullable org.openrewrite.Checksumorg.openrewrite.remote.Remotegradlew()org.openrewrite.remote.Remoteorg.openrewrite.remote.Remoteorg.openrewrite.remote.RemotewrapperJar(org.openrewrite.SourceFile before)
-
Field Details
-
WRAPPER_JAR_LOCATION_RELATIVE_PATH
- See Also:
-
WRAPPER_PROPERTIES_LOCATION_RELATIVE_PATH
- See Also:
-
WRAPPER_SCRIPT_LOCATION_RELATIVE_PATH
- See Also:
-
WRAPPER_BATCH_LOCATION_RELATIVE_PATH
- See Also:
-
WRAPPER_JAR_LOCATION
-
WRAPPER_PROPERTIES_LOCATION
-
WRAPPER_SCRIPT_LOCATION
-
WRAPPER_BATCH_LOCATION
-
-
Constructor Details
-
GradleWrapper
public GradleWrapper()
-
-
Method Details
-
create
public static GradleWrapper create(@Nullable String distributionTypeName, @Nullable String version, @Nullable String repositoryUrl, org.openrewrite.ExecutionContext ctx) -
create
Construct a Gradle wrapper from a URI. Can be used in contexts where servcies.gradle.org, normally used for version lookups, is unavailable. -
getDistributionUrl
-
getPropertiesFormattedUrl
-
getDistributionChecksum
public @Nullable org.openrewrite.Checksum getDistributionChecksum() -
wrapperJar
public org.openrewrite.remote.Remote wrapperJar() -
wrapperJar
public org.openrewrite.remote.Remote wrapperJar(org.openrewrite.SourceFile before) -
gradlew
public org.openrewrite.remote.Remote gradlew() -
gradlewBat
public org.openrewrite.remote.Remote gradlewBat()
-