Interface StrawberryExtension

All Known Implementing Classes:
StrawberryExtensionImpl

public interface StrawberryExtension
Extension exposing extra functionality provided by Strawberry.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    minecraft(org.gradle.api.Action<MinecraftExtension> action)
     
    default void
    relocate(String pattern, String destination)
    Add a class relocator that maps each class in the pattern to the provided destination.
    default void
    relocate(String pattern, String destination, org.gradle.api.Action<com.github.jengelman.gradle.plugins.shadow.relocation.SimpleRelocator> configure)
    Add a class relocator that maps each class in the pattern to the provided destination.
    org.gradle.api.provider.SetProperty<Relocation>
    The relocations to be made in this project.
  • Method Details

    • relocations

      @Nonnull org.gradle.api.provider.SetProperty<Relocation> relocations()
      The relocations to be made in this project.
      Returns:
      a set property providing the relocations
    • relocate

      default void relocate(@Nonnull String pattern, @Nonnull String destination)
      Add a class relocator that maps each class in the pattern to the provided destination.
      Parameters:
      pattern - the source pattern to relocate
      destination - the destination package
    • relocate

      default void relocate(@Nonnull String pattern, @Nonnull String destination, @Nullable org.gradle.api.Action<com.github.jengelman.gradle.plugins.shadow.relocation.SimpleRelocator> configure)
      Add a class relocator that maps each class in the pattern to the provided destination.
      Parameters:
      pattern - the source pattern to relocate
      destination - the destination package
      configure - the configuration of the relocator
    • minecraft

      @Nonnull MinecraftExtension minecraft()
    • minecraft

      void minecraft(@Nonnull org.gradle.api.Action<MinecraftExtension> action)