Package net.kyori.indra
Interface IndraExtension
-
- All Known Implementing Classes:
IndraExtensionImpl
public interface IndraExtensionExtension exposing extra functionality provided by Indra.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidapache2License()@NotNull org.gradle.api.provider.Property<java.lang.String>checkstyle()A property representing the version of checkstyle to be used.default voidcheckstyle(@NotNull java.lang.String checkstyleVersion)Set the version of checkstyle to be used.@NotNull org.gradle.api.provider.Property<ContinuousIntegration>ci()default voidci(@NotNull ContinuousIntegration ci)default voidci(@NotNull org.gradle.api.Action<ContinuousIntegration.Builder> configureAction)voidconfigurePublications(@NotNull org.gradle.api.Action<org.gradle.api.publish.maven.MavenPublication> action)default voidgithub(@NotNull java.lang.String user, @NotNull java.lang.String repo)voidgithub(@NotNull java.lang.String user, @NotNull java.lang.String repo, @Nullable org.gradle.api.Action<ApplyTo> applicable)default voidgitlab(@NotNull java.lang.String user, @NotNull java.lang.String repo)voidgitlab(@NotNull java.lang.String user, @NotNull java.lang.String repo, @Nullable org.gradle.api.Action<ApplyTo> applicable)default voidgpl3OnlyLicense()default voidgpl3OrLaterLicense()@NotNull org.gradle.api.provider.Property<java.lang.Boolean>includeJavaSoftwareComponentInPublications()Whether thejavaSoftwareComponentshould be automatically included in publications.default voidincludeJavaSoftwareComponentInPublications(boolean include)Set whether thejavacomponent should be included in publications.@NotNull org.gradle.api.provider.Property<Issues>issues()default voidissues(@NotNull Issues issues)default voidissues(@NotNull org.gradle.api.Action<Issues.Builder> configureAction)@NotNull JavaToolchainVersionsjavaVersions()Options controlling JVM toolchain versions.voidjavaVersions(@NotNull org.gradle.api.Action<JavaToolchainVersions> action)Configure the JVM versioning configuration.default voidjenkins(@NotNull java.lang.String url)default voidlgpl3OnlyLicense()default voidlgpl3OrLaterLicense()@NotNull org.gradle.api.provider.Property<License>license()default voidlicense(@NotNull License license)default voidlicense(@NotNull org.gradle.api.Action<License.Builder> configureAction)default voidmitLicense()default voidmpl2License()voidpublishAllTo(@NotNull java.lang.String id, @NotNull java.lang.String url)voidpublishReleasesTo(@NotNull java.lang.String id, @NotNull java.lang.String url)voidpublishSnapshotsTo(@NotNull java.lang.String id, @NotNull java.lang.String url)@NotNull org.gradle.api.provider.Property<java.lang.Boolean>reproducibleBuilds()Whether options that support reproducible builds should be enabled.default voidreproducibleBuilds(boolean reproducibleBuilds)Set whether options that support reproducible builds should be enabled.@NotNull org.gradle.api.provider.Property<SourceCodeManagement>scm()default voidscm(@NotNull SourceCodeManagement scm)default voidscm(@NotNull org.gradle.api.Action<SourceCodeManagement.Builder> configureAction)voidsignWithKeyFromPrefixedProperties(java.lang.String prefix)Configure signing to source key and password for signing from two gradle properties with the provided prefix.voidsignWithKeyFromProperties(java.lang.String keyFileOrContentsProperty, java.lang.String keyPasswordProperty)Configure signing to source key and password for signing from Gradle properties.
-
-
-
Method Detail
-
javaVersions
@NotNull @NotNull JavaToolchainVersions javaVersions()
Options controlling JVM toolchain versions.- Returns:
- the java toolchain version configuration
- Since:
- 2.0.0
-
javaVersions
void javaVersions(@NotNull @NotNull org.gradle.api.Action<JavaToolchainVersions> action)Configure the JVM versioning configuration.- Parameters:
action- the action to apply to the JVM versioning configuration- Since:
- 2.0.0
-
ci
@NotNull @NotNull org.gradle.api.provider.Property<ContinuousIntegration> ci()
-
ci
default void ci(@NotNull @NotNull ContinuousIntegration ci)
-
ci
default void ci(@NotNull @NotNull org.gradle.api.Action<ContinuousIntegration.Builder> configureAction)
-
jenkins
default void jenkins(@NotNull @NotNull java.lang.String url)
-
issues
@NotNull @NotNull org.gradle.api.provider.Property<Issues> issues()
-
issues
default void issues(@NotNull @NotNull Issues issues)
-
issues
default void issues(@NotNull @NotNull org.gradle.api.Action<Issues.Builder> configureAction)
-
scm
@NotNull @NotNull org.gradle.api.provider.Property<SourceCodeManagement> scm()
-
scm
default void scm(@NotNull @NotNull SourceCodeManagement scm)
-
scm
default void scm(@NotNull @NotNull org.gradle.api.Action<SourceCodeManagement.Builder> configureAction)
-
license
@NotNull @NotNull org.gradle.api.provider.Property<License> license()
-
license
default void license(@NotNull @NotNull License license)
-
license
default void license(@NotNull @NotNull org.gradle.api.Action<License.Builder> configureAction)
-
apache2License
default void apache2License()
-
gpl3OnlyLicense
default void gpl3OnlyLicense()
-
gpl3OrLaterLicense
default void gpl3OrLaterLicense()
-
lgpl3OnlyLicense
default void lgpl3OnlyLicense()
-
lgpl3OrLaterLicense
default void lgpl3OrLaterLicense()
-
mitLicense
default void mitLicense()
-
mpl2License
default void mpl2License()
-
github
default void github(@NotNull @NotNull java.lang.String user, @NotNull @NotNull java.lang.String repo)
-
github
void github(@NotNull @NotNull java.lang.String user, @NotNull @NotNull java.lang.String repo, @Nullable @Nullable org.gradle.api.Action<ApplyTo> applicable)
-
gitlab
default void gitlab(@NotNull @NotNull java.lang.String user, @NotNull @NotNull java.lang.String repo)
-
gitlab
void gitlab(@NotNull @NotNull java.lang.String user, @NotNull @NotNull java.lang.String repo, @Nullable @Nullable org.gradle.api.Action<ApplyTo> applicable)
-
publishAllTo
void publishAllTo(@NotNull @NotNull java.lang.String id, @NotNull @NotNull java.lang.String url)
-
publishReleasesTo
void publishReleasesTo(@NotNull @NotNull java.lang.String id, @NotNull @NotNull java.lang.String url)
-
publishSnapshotsTo
void publishSnapshotsTo(@NotNull @NotNull java.lang.String id, @NotNull @NotNull java.lang.String url)
-
configurePublications
void configurePublications(@NotNull @NotNull org.gradle.api.Action<org.gradle.api.publish.maven.MavenPublication> action)
-
checkstyle
@NotNull @NotNull org.gradle.api.provider.Property<java.lang.String> checkstyle()
A property representing the version of checkstyle to be used.If any custom additions are applied to the
checkstyleconfiguration, this value will be ignored.- Returns:
- the checkstyle version property
- Since:
- 2.0.0
-
checkstyle
default void checkstyle(@NotNull @NotNull java.lang.String checkstyleVersion)Set the version of checkstyle to be used.- Parameters:
checkstyleVersion- the target checkstyle version- Since:
- 2.0.0
- See Also:
for information on limitations
-
reproducibleBuilds
@NotNull @NotNull org.gradle.api.provider.Property<java.lang.Boolean> reproducibleBuilds()
Whether options that support reproducible builds should be enabled.Default:
true- Returns:
- the property configuring reproducible builds
- Since:
- 2.0.0
-
reproducibleBuilds
default void reproducibleBuilds(boolean reproducibleBuilds)
Set whether options that support reproducible builds should be enabled.Default:
true- Parameters:
reproducibleBuilds- whether to build in a way that encourages reproducibility- Since:
- 2.0.0
-
includeJavaSoftwareComponentInPublications
@NotNull @NotNull org.gradle.api.provider.Property<java.lang.Boolean> includeJavaSoftwareComponentInPublications()
Whether 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.
- Returns:
- the property representing this option
- Since:
- 2.0.0
-
includeJavaSoftwareComponentInPublications
default void includeJavaSoftwareComponentInPublications(boolean include)
Set whether thejavacomponent should be included in publications.- Parameters:
include- whether the component should be included- Since:
- 2.0.0
- See Also:
for more details
-
signWithKeyFromPrefixedProperties
void signWithKeyFromPrefixedProperties(java.lang.String prefix)
Configure signing to source key and password for signing from two gradle properties with the provided prefix.This is equivalent to invoking
signWithKeyFromProperties(String, String)with${prefix}SigningKeyand${prefix}SigningPasswordas arguments.- Parameters:
prefix- the prefix for the two properties.- Since:
- 3.1.0
- See Also:
signWithKeyFromProperties(String, String)
-
signWithKeyFromProperties
void signWithKeyFromProperties(java.lang.String keyFileOrContentsProperty, java.lang.String keyPasswordProperty)Configure 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.
- 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- Since:
- 3.1.0
-
-