Package net.kyori.indra.internal
Class IndraExtensionImpl
java.lang.Object
net.kyori.indra.internal.IndraExtensionImpl
- All Implemented Interfaces:
IndraExtension
-
Field Summary
Fields inherited from interface net.kyori.indra.IndraExtension
CODEBERG_BASE_URL -
Constructor Summary
ConstructorsConstructorDescriptionIndraExtensionImpl(org.gradle.api.model.ObjectFactory objects, org.gradle.api.provider.ProviderFactory providers, org.gradle.api.file.ProjectLayout layout) -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull org.gradle.api.provider.Property<String>A property representing the version of checkstyle to be used.@NotNull org.gradle.api.provider.Property<ContinuousIntegration>ci()voidconfigurePublications(@NotNull org.gradle.api.Action<org.gradle.api.publish.maven.MavenPublication> action) voidforgejo(URI baseUrl, @NotNull String user, @NotNull String repo, @Nullable org.gradle.api.Action<ApplyTo> applicable) voidgithub(@NotNull String user, @NotNull String repo, @Nullable org.gradle.api.Action<ApplyTo> applicable) voidgitlab(@NotNull String user, @NotNull String repo, @Nullable org.gradle.api.Action<ApplyTo> applicable) @NotNull org.gradle.api.provider.Property<Boolean>Whether thejavaSoftwareComponentshould be automatically included in publications.voidinitSigningExtension(org.gradle.plugins.signing.SigningExtension extension) @NotNull org.gradle.api.provider.Property<Issues>issues()@NotNull JavaToolchainVersionsOptions controlling JVM toolchain versions.voidjavaVersions(@NotNull org.gradle.api.Action<JavaToolchainVersions> action) Configure the JVM versioning configuration.@NotNull org.gradle.api.provider.Property<License>license()org.gradle.process.CommandLineArgumentProvidervoidpublishAllTo(@NotNull String id, @NotNull String url) voidpublishReleasesTo(@NotNull String id, @NotNull String url) voidpublishSnapshotsTo(@NotNull String id, @NotNull String url) @NotNull org.gradle.api.provider.Property<Boolean>Whether options that support reproducible builds should be enabled.@NotNull org.gradle.api.provider.Property<SourceCodeManagement>scm()voidConfigure signing to source key and password for signing from two gradle properties with the provided prefix.voidsignWithKeyFromProperties(String keyFileOrContentsProperty, String keyPasswordProperty) Configure signing to source key and password for signing from Gradle properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.kyori.indra.IndraExtension
apache2License, checkstyle, ci, ci, codeberg, codeberg, forgejo, github, gitlab, gpl3OnlyLicense, gpl3OrLaterLicense, includeJavaSoftwareComponentInPublications, issues, issues, jenkins, lgpl3OnlyLicense, lgpl3OrLaterLicense, license, license, mitLicense, mpl2License, reproducibleBuilds, scm, scm
-
Constructor Details
-
IndraExtensionImpl
@Inject public IndraExtensionImpl(org.gradle.api.model.ObjectFactory objects, org.gradle.api.provider.ProviderFactory providers, org.gradle.api.file.ProjectLayout layout)
-
-
Method Details
-
javaVersions
Description copied from interface:IndraExtensionOptions controlling JVM toolchain versions.- Specified by:
javaVersionsin interfaceIndraExtension- Returns:
- the java toolchain version configuration
-
javaVersions
Description copied from interface:IndraExtensionConfigure the JVM versioning configuration.- Specified by:
javaVersionsin interfaceIndraExtension- Parameters:
action- the action to apply to the JVM versioning configuration
-
previewFeatureArgumentProvider
public org.gradle.process.CommandLineArgumentProvider previewFeatureArgumentProvider() -
ci
- Specified by:
ciin interfaceIndraExtension
-
issues
- Specified by:
issuesin interfaceIndraExtension
-
scm
- Specified by:
scmin interfaceIndraExtension
-
license
- Specified by:
licensein interfaceIndraExtension
-
github
public void github(@NotNull @NotNull String user, @NotNull @NotNull String repo, @Nullable @Nullable org.gradle.api.Action<ApplyTo> applicable) - Specified by:
githubin interfaceIndraExtension
-
gitlab
public void gitlab(@NotNull @NotNull String user, @NotNull @NotNull String repo, @Nullable @Nullable org.gradle.api.Action<ApplyTo> applicable) - Specified by:
gitlabin interfaceIndraExtension
-
forgejo
public void forgejo(URI baseUrl, @NotNull @NotNull String user, @NotNull @NotNull String repo, @Nullable @Nullable org.gradle.api.Action<ApplyTo> applicable) - Specified by:
forgejoin interfaceIndraExtension
-
publishAllTo
- Specified by:
publishAllToin interfaceIndraExtension
-
publishReleasesTo
- Specified by:
publishReleasesToin interfaceIndraExtension
-
publishSnapshotsTo
- Specified by:
publishSnapshotsToin interfaceIndraExtension
-
configurePublications
public void configurePublications(@NotNull @NotNull org.gradle.api.Action<org.gradle.api.publish.maven.MavenPublication> action) - Specified by:
configurePublicationsin interfaceIndraExtension
-
checkstyle
Description copied from interface:IndraExtensionA property representing the version of checkstyle to be used.If any custom additions are applied to the
checkstyleconfiguration, this value will be ignored.- Specified by:
checkstylein interfaceIndraExtension- Returns:
- the checkstyle version property
-
reproducibleBuilds
Description copied from interface:IndraExtensionWhether options that support reproducible builds should be enabled.Default:
true- Specified by:
reproducibleBuildsin interfaceIndraExtension- Returns:
- the property configuring reproducible builds
-
includeJavaSoftwareComponentInPublications
@NotNull public @NotNull org.gradle.api.provider.Property<Boolean> includeJavaSoftwareComponentInPublications()Description copied from interface:IndraExtensionWhether thejavaSoftwareComponentshould be automatically included in publications.This property does not usually need to be changed, unless working with Gradle plugins that publish in a non-standard way.
- Specified by:
includeJavaSoftwareComponentInPublicationsin interfaceIndraExtension- Returns:
- the property representing this option
-
signWithKeyFromPrefixedProperties
Description copied from interface:IndraExtensionConfigure signing to source key and password for signing from two gradle properties with the provided prefix.This is equivalent to invoking
IndraExtension.signWithKeyFromProperties(String, String)with${prefix}SigningKeyand${prefix}SigningPasswordas arguments.- Specified by:
signWithKeyFromPrefixedPropertiesin interfaceIndraExtension- Parameters:
prefix- the prefix for the two properties.- See Also:
-
signWithKeyFromProperties
Description copied from interface:IndraExtensionConfigure signing to source key and password for signing from Gradle properties.If both properties are set, this overrides Indra's default behaviour, which is to use the GPG agent for signing.
- Specified by:
signWithKeyFromPropertiesin interfaceIndraExtension- Parameters:
keyFileOrContentsProperty- a property containing either a path to a key file, or the ascii-armored key blobkeyPasswordProperty- a password containing the literal password for the provided key
-
initSigningExtension
public void initSigningExtension(org.gradle.plugins.signing.SigningExtension extension) -
alternateSigningConfigured
public boolean alternateSigningConfigured()
-