All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.jengelman.gradle.plugins.shadow.tasks.ShadowSpec.kt Maven / Gradle / Ivy

Go to download

Gradle plugin to create fat/uber JARs, apply file transforms, and relocate packages for applications and libraries. Gradle version of Maven's Shade plugin.

There is a newer version: 9.0.0-beta4
Show newest version
package com.github.jengelman.gradle.plugins.shadow.tasks

import com.github.jengelman.gradle.plugins.shadow.ShadowStats
import com.github.jengelman.gradle.plugins.shadow.internal.DependencyFilter
import com.github.jengelman.gradle.plugins.shadow.relocation.Relocator
import com.github.jengelman.gradle.plugins.shadow.relocation.SimpleRelocator
import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer
import com.github.jengelman.gradle.plugins.shadow.transformers.Transformer
import java.lang.reflect.InvocationTargetException
import org.gradle.api.Action
import org.gradle.api.file.CopySpec

public interface ShadowSpec : CopySpec {
  public fun minimize(): ShadowSpec

  public fun minimize(action: Action?): ShadowSpec

  public fun dependencies(action: Action?): ShadowSpec

  @Throws(
    InstantiationException::class,
    IllegalAccessException::class,
    NoSuchMethodException::class,
    InvocationTargetException::class,
  )
  public fun transform(clazz: Class): ShadowSpec

  @Throws(
    InstantiationException::class,
    IllegalAccessException::class,
    NoSuchMethodException::class,
    InvocationTargetException::class,
  )
  public fun  transform(clazz: Class, action: Action?): ShadowSpec

  public fun transform(transformer: Transformer): ShadowSpec

  public fun mergeServiceFiles(): ShadowSpec

  public fun mergeServiceFiles(rootPath: String): ShadowSpec

  public fun mergeServiceFiles(action: Action?): ShadowSpec

  public fun mergeGroovyExtensionModules(): ShadowSpec

  public fun append(resourcePath: String): ShadowSpec

  public fun relocate(pattern: String, destination: String): ShadowSpec

  public fun relocate(pattern: String, destination: String, action: Action?): ShadowSpec

  public fun relocate(relocator: Relocator): ShadowSpec

  @Throws(
    InstantiationException::class,
    IllegalAccessException::class,
    NoSuchMethodException::class,
    InvocationTargetException::class,
  )
  public fun relocate(clazz: Class): ShadowSpec

  @Throws(
    InstantiationException::class,
    IllegalAccessException::class,
    NoSuchMethodException::class,
    InvocationTargetException::class,
  )
  public fun  relocate(clazz: Class, action: Action?): ShadowSpec

  public val stats: ShadowStats
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy