Class IndraExtensionImpl

java.lang.Object
net.kyori.indra.internal.IndraExtensionImpl
All Implemented Interfaces:
IndraExtension

public class IndraExtensionImpl extends Object implements IndraExtension
  • 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

      @NotNull public @NotNull JavaToolchainVersions javaVersions()
      Description copied from interface: IndraExtension
      Options controlling JVM toolchain versions.
      Specified by:
      javaVersions in interface IndraExtension
      Returns:
      the java toolchain version configuration
    • javaVersions

      public void javaVersions(@NotNull @NotNull org.gradle.api.Action<JavaToolchainVersions> action)
      Description copied from interface: IndraExtension
      Configure the JVM versioning configuration.
      Specified by:
      javaVersions in interface IndraExtension
      Parameters:
      action - the action to apply to the JVM versioning configuration
    • previewFeatureArgumentProvider

      public org.gradle.process.CommandLineArgumentProvider previewFeatureArgumentProvider()
    • ci

      @NotNull public @NotNull org.gradle.api.provider.Property<ContinuousIntegration> ci()
      Specified by:
      ci in interface IndraExtension
    • issues

      @NotNull public @NotNull org.gradle.api.provider.Property<Issues> issues()
      Specified by:
      issues in interface IndraExtension
    • scm

      @NotNull public @NotNull org.gradle.api.provider.Property<SourceCodeManagement> scm()
      Specified by:
      scm in interface IndraExtension
    • license

      @NotNull public @NotNull org.gradle.api.provider.Property<License> license()
      Specified by:
      license in interface IndraExtension
    • github

      public void github(@NotNull @NotNull String user, @NotNull @NotNull String repo, @Nullable @Nullable org.gradle.api.Action<ApplyTo> applicable)
      Specified by:
      github in interface IndraExtension
    • gitlab

      public void gitlab(@NotNull @NotNull String user, @NotNull @NotNull String repo, @Nullable @Nullable org.gradle.api.Action<ApplyTo> applicable)
      Specified by:
      gitlab in interface IndraExtension
    • publishAllTo

      public void publishAllTo(@NotNull @NotNull String id, @NotNull @NotNull String url)
      Specified by:
      publishAllTo in interface IndraExtension
    • publishReleasesTo

      public void publishReleasesTo(@NotNull @NotNull String id, @NotNull @NotNull String url)
      Specified by:
      publishReleasesTo in interface IndraExtension
    • publishSnapshotsTo

      public void publishSnapshotsTo(@NotNull @NotNull String id, @NotNull @NotNull String url)
      Specified by:
      publishSnapshotsTo in interface IndraExtension
    • configurePublications

      public void configurePublications(@NotNull @NotNull org.gradle.api.Action<org.gradle.api.publish.maven.MavenPublication> action)
      Specified by:
      configurePublications in interface IndraExtension
    • checkstyle

      @NotNull public @NotNull org.gradle.api.provider.Property<String> checkstyle()
      Description copied from interface: IndraExtension
      A property representing the version of checkstyle to be used.

      If any custom additions are applied to the checkstyle configuration, this value will be ignored.

      Specified by:
      checkstyle in interface IndraExtension
      Returns:
      the checkstyle version property
    • reproducibleBuilds

      @NotNull public @NotNull org.gradle.api.provider.Property<Boolean> reproducibleBuilds()
      Description copied from interface: IndraExtension
      Whether options that support reproducible builds should be enabled.

      Default: true

      Specified by:
      reproducibleBuilds in interface IndraExtension
      Returns:
      the property configuring reproducible builds
    • includeJavaSoftwareComponentInPublications

      @NotNull public @NotNull org.gradle.api.provider.Property<Boolean> includeJavaSoftwareComponentInPublications()
      Description copied from interface: IndraExtension
      Whether the java SoftwareComponent should 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:
      includeJavaSoftwareComponentInPublications in interface IndraExtension
      Returns:
      the property representing this option
    • signWithKeyFromPrefixedProperties

      public void signWithKeyFromPrefixedProperties(String prefix)
      Description copied from interface: IndraExtension
      Configure 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}SigningKey and ${prefix}SigningPassword as arguments.

      Specified by:
      signWithKeyFromPrefixedProperties in interface IndraExtension
      Parameters:
      prefix - the prefix for the two properties.
      See Also:
    • signWithKeyFromProperties

      public void signWithKeyFromProperties(String keyFileOrContentsProperty, String keyPasswordProperty)
      Description copied from interface: IndraExtension
      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.

      Specified by:
      signWithKeyFromProperties in interface IndraExtension
      Parameters:
      keyFileOrContentsProperty - a property containing either a path to a key file, or the ascii-armored key blob
      keyPasswordProperty - a password containing the literal password for the provided key
    • initSigningExtension

      public void initSigningExtension(org.gradle.plugins.signing.SigningExtension extension)
    • alternateSigningConfigured

      public boolean alternateSigningConfigured()